/external/python/cpython3/Lib/test/ |
D | test_subclassinit.py | 10 def __init_subclass__(cls): member in Test.test_init_subclass.A 11 super().__init_subclass__() 24 def __init_subclass__(cls): member in Test.test_init_subclass_dict.A 25 super().__init_subclass__() 36 def __init_subclass__(cls, **kwargs): member in Test.test_init_subclass_kwargs.A 46 def __init_subclass__(cls): member in Test.test_init_subclass_error.A 55 def __init_subclass__(cls, whatever): member in Test.test_init_subclass_wrong.A 64 def __init_subclass__(cls, **kwargs): member in Test.test_init_subclass_skipped.BaseWithInit 65 super().__init_subclass__(**kwargs) 79 def __init_subclass__(cls, **kwargs): member in Test.test_init_subclass_diamond.Base [all …]
|
D | test_abc.py | 479 def __init_subclass__(cls, **kwargs): member in test_factory.TestABCWithInitSubclass.test_works_with_init_subclass.ReceivesClassKwargs 480 super().__init_subclass__()
|
D | test_genericclass.py | 197 def __init_subclass__(cls): member in TestClassGetitem.test_class_getitem_patched.C
|
D | test_typing.py | 634 def __init_subclass__(cls, **kwargs): member in GenericTests.test_init_subclass.X 635 super().__init_subclass__(**kwargs) 1241 def __init_subclass__(cls, **kwargs) -> None: member in GenericTests.test_init_subclass_super_called.Final 1245 super().__init_subclass__(**kwargs)
|
D | test_pydoc.py | 647 expected['__init_subclass__'] = TestClass.__init_subclass__
|
D | test_inspect.py | 261 def __init_subclass__(cls): member in TestPredicates.test_isabstract_during_init_subclass.AbstractChecker
|
/external/python/cpython3/Lib/ |
D | typing.py | 276 def __init_subclass__(self, *args, **kwds): member in _Final 841 def __init_subclass__(cls, *args, **kwargs): member in Generic 842 super().__init_subclass__(*args, **kwargs)
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.6.2rc1.rst | 322 inspect.isabstract() now works during __init_subclass__. Patch by Nate 333 use keyword parameters in __init_subclass__. Patch by Nate Soares.
|
D | 3.6.0a4.rst | 126 subclassing, the __init_subclass__ classmethod is called on the base class.
|
D | 3.6.4rc1.rst | 266 generic classes, improve interaction of ``__init_subclass__`` with generics.
|
D | 3.7.0a3.rst | 255 generic classes, improve interaction of ``__init_subclass__`` with generics.
|
D | 3.7.0a1.rst | 2867 inspect.isabstract() now works during __init_subclass__. Patch by Nate 4728 use keyword parameters in __init_subclass__. Patch by Nate Soares.
|
/external/python/cpython3/Doc/reference/ |
D | datamodel.rst | 1791 Whenever a class inherits from another class, *__init_subclass__* is 1795 applied to, ``__init_subclass__`` solely applies to future subclasses of the 1798 .. classmethod:: object.__init_subclass__(cls) 1805 the parent's class ``__init_subclass__``. For compatibility with 1806 other classes using ``__init_subclass__``, one should take out the 1811 def __init_subclass__(cls, default_name, **kwargs): 1812 super().__init_subclass__(**kwargs) 1818 The default implementation ``object.__init_subclass__`` does 1824 machinery, and is never passed to ``__init_subclass__`` implementations. 1985 * finally, the :meth:`~object.__init_subclass__` hook is called on the
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.6.rst | 332 The new ``__init_subclass__`` classmethod will be called on the base class 338 def __init_subclass__(cls, **kwargs): 339 super().__init_subclass__(**kwargs) 349 :meth:`~object.__init_subclass__` implementations, custom metaclasses must 2238 consistently delegated to :meth:`object.__init_subclass__`. This means that 2240 keyword arguments, but :meth:`object.__init_subclass__` (which is called from
|
/external/python/cpython3/Objects/ |
D | typeobject.c | 65 _Py_IDENTIFIER(__init_subclass__);
|