'Resolve a number class\'s constructor (e.g. calling int(...))'

def resolve___call__(self, classty):

    ty = classty.instance_type
    def typer(val):
        if isinstance(val, (types.BaseTuple, types.Sequence)):
            sig = self.context.resolve_function_type(np.array, (val,), {'dtype': types.DType(ty)})
            return sig.return_type
        else:
            return ty
    return types.Function(make_callable_template(key=ty, typer=typer))
