# pylint: disable=missing-docstring,too-few-public-methods,useless-object-inheritance | |
"""#3291""" | |
from __future__ import print_function | |
class Myarray(object): | |
def __init__(self, array): | |
self.array = array | |
def __mul__(self, val): | |
return Myarray(val) | |
def astype(self): | |
return "ASTYPE", self | |
def randint(maximum): | |
if maximum is not None: | |
return Myarray([1, 2, 3]) * 2 | |
return int(5) | |
print(randint(1).astype()) # we don't wan't an error for astype access |