/external/python/cpython3/Lib/test/ |
test_subclassinit.py | 10 def __init_subclass__(cls): member in class:Test.test_init_subclass.A 11 super().__init_subclass__() 24 def __init_subclass__(cls): member in class:Test.test_init_subclass_dict.A 25 super().__init_subclass__() 36 def __init_subclass__(cls, **kwargs): member in class:Test.test_init_subclass_kwargs.A 46 def __init_subclass__(cls): member in class:Test.test_init_subclass_error.A 55 def __init_subclass__(cls, whatever): member in class:Test.test_init_subclass_wrong.A 64 def __init_subclass__(cls, **kwargs): member in class:Test.test_init_subclass_skipped.BaseWithInit 65 super().__init_subclass__(**kwargs) 79 def __init_subclass__(cls, **kwargs) member in class:Test.test_init_subclass_diamond.Base 87 def __init_subclass__(cls, middle, **kwargs): member in class:Test.test_init_subclass_diamond.Middle 92 def __init_subclass__(cls, right="right", **kwargs): member in class:Test.test_init_subclass_diamond.Right 188 def __init_subclass__(cls): member in class:Test.test_set_name_init_subclass.A [all...] |
test_genericclass.py | 197 def __init_subclass__(cls): member in class:TestClassGetitem.test_class_getitem_patched.C
|
test_abc.py | 479 def __init_subclass__(cls, **kwargs): member in class:test_factory.TestABCWithInitSubclass.test_works_with_init_subclass.ReceivesClassKwargs 480 super().__init_subclass__()
|
test_typing.py | 634 def __init_subclass__(cls, **kwargs): member in class:GenericTests.test_init_subclass.X 635 super().__init_subclass__(**kwargs) 1241 def __init_subclass__(cls, **kwargs) -> None: member in class:GenericTests.test_init_subclass_super_called.Final [all...] |
test_pydoc.py | 645 # so we need to update __subclasshook__ and __init_subclass__. 647 expected['__init_subclass__'] = TestClass.__init_subclass__ [all...] |
test_inspect.py | 261 def __init_subclass__(cls): member in class:TestPredicates.test_isabstract_during_init_subclass.AbstractChecker [all...] |
/external/python/cpython3/Lib/ |
typing.py | 276 def __init_subclass__(self, *args, **kwds): member in class:_Final 841 def __init_subclass__(cls, *args, **kwargs): member in class:Generic 842 super().__init_subclass__(*args, **kwargs) [all...] |
/external/python/cpython3/Objects/ |
typeobject.c | 65 _Py_IDENTIFIER(__init_subclass__); variable [all...] |