'Instances of IPyAutocall in user_ns get autocalled immediately'

def check(self, line_info):

    obj = self.shell.user_ns.get(line_info.ifun, None)
    if isinstance(obj, IPyAutocall):
        obj.set_ip(self.shell)
        return self.prefilter_manager.get_handler_by_name('auto')
    else:
        return None
