Lines Matching refs:cls
106 cls = super().__new__(mcls, name, bases, namespace, **kwargs)
107 _abc_init(cls)
108 return cls
110 def register(cls, subclass): argument
115 return _abc_register(cls, subclass)
117 def __instancecheck__(cls, instance): argument
119 return _abc_instancecheck(cls, instance)
121 def __subclasscheck__(cls, subclass): argument
123 return _abc_subclasscheck(cls, subclass)
125 def _dump_registry(cls, file=None): argument
130 _abc_negative_cache_version) = _get_dump(cls)
137 def _abc_registry_clear(cls): argument
139 _reset_registry(cls)
141 def _abc_caches_clear(cls): argument
143 _reset_caches(cls)
146 def update_abstractmethods(cls): argument
162 if not hasattr(cls, '__abstractmethods__'):
166 return cls
171 for scls in cls.__bases__:
173 value = getattr(cls, name, None)
177 for name, value in cls.__dict__.items():
180 cls.__abstractmethods__ = frozenset(abstracts)
181 return cls