def __init__(self): # A list of installed registries self._registries = {} # Typing declarations extracted from the registries or other sources self._functions = defaultdict(list) self._attributes = defaultdict(list) self._globals = utils.UniqueDict() self.tm = rules.default_type_manager self.callstack = CallStack() # Initialize self.init()
def __init__(self, py_func, locals={}, targetoptions={}): self.py_func = py_func self.overloads = utils.UniqueDict() self.targetoptions = targetoptions self.locals = locals self.cache = NullCache()
def __init__(self): self._unresolved = utils.UniqueDict() self._defined = set() self._resolved = []
def __init__(self, *args, **kws): self.ondemand = utils.UniqueDict() self.key_type = kws.pop('key_type', None) self.value_type = kws.pop('value_type', None) self._type_check = self.key_type or self.value_type super(TargetRegistry, self).__init__(*args, **kws)
def __init__(self, *args, **kws): super(TargetRegistry, self).__init__(*args, **kws) self.ondemand = utils.UniqueDict()