Home
last modified time | relevance | path

Searched refs:__init_subclass__ (Results 1 – 25 of 25) sorted by relevance

/third_party/python/Lib/test/
Dtest_subclassinit.py10 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 …]
Dtest_abc.py665 def __init_subclass__(cls, **kwargs): member in test_factory.TestABCWithInitSubclass.test_works_with_init_subclass.ReceivesClassKwargs
666 super().__init_subclass__()
Dtest_genericclass.py197 def __init_subclass__(cls): member in TestClassGetitem.test_class_getitem_patched.C
Dtest_enum.py2632 def __init_subclass__(cls, **kwds): member in TestFlag.test_init_subclass.MyEnum
2633 super().__init_subclass__(**kwds)
2638 def __init_subclass__(cls, **kwds): member in TestFlag.test_init_subclass.TheirEnum
2639 super(TheirEnum, cls).__init_subclass__(**kwds)
2642 def __init_subclass__(cls, **kwds): member in TestFlag.test_init_subclass.WhoseEnum
2653 def __init_subclass__(cls, **kwds): member in TestFlag.test_init_subclass.OurEnum
2656 def __init_subclass__(cls, **kwds): member in TestFlag.test_init_subclass.WhereEnum
Dtest_pydoc.py777 expected['__init_subclass__'] = TestClass.__init_subclass__
Dtest_typing.py1671 def __init_subclass__(cls, **kwargs): member in GenericTests.test_init_subclass.X
1672 super().__init_subclass__(**kwargs)
2278 def __init_subclass__(cls, **kwargs) -> None: member in GenericTests.test_init_subclass_super_called.Final
2282 super().__init_subclass__(**kwargs)
Dtest_inspect.py288 def __init_subclass__(cls): member in TestPredicates.test_isabstract_during_init_subclass.AbstractChecker
/third_party/python/Lib/
Dstring.py69 def __init_subclass__(cls): member in Template
70 super().__init_subclass__()
146 Template.__init_subclass__()
Dtyping.py345 def __init_subclass__(self, /, *args, **kwds): member in _Final
1328 def __init_subclass__(cls, *args, **kwargs): member in Generic
1329 super().__init_subclass__(*args, **kwargs)
1527 def __init_subclass__(cls, *args, **kwargs): member in Protocol
1528 super().__init_subclass__(*args, **kwargs)
1684 def __init_subclass__(cls, *args, **kwargs): member in Annotated
Drandom.py219 def __init_subclass__(cls, /, **kwargs): member in Random
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/
Dmetadata.py35 def __init_subclass__(*_args, **_kwargs): member in Literal
39 def __init_subclass__(*_args, **_kwargs): member in TypedDict
/third_party/python/Misc/NEWS.d/
D3.10.0a5.rst301 in ``__init_subclass__``.
340 remove __init_subclass__ support for Enum members
D3.6.2rc1.rst322 inspect.isabstract() now works during __init_subclass__. Patch by Nate
333 use keyword parameters in __init_subclass__. Patch by Nate Soares.
D3.10.0a4.rst277 ``__init_subclass__``
538 ``Enum``: call ``__init_subclass__`` after members have been added
D3.6.0a4.rst126 subclassing, the __init_subclass__ classmethod is called on the base class.
D3.6.4rc1.rst265 generic classes, improve interaction of ``__init_subclass__`` with generics.
D3.7.0a3.rst254 generic classes, improve interaction of ``__init_subclass__`` with generics.
D3.7.0a1.rst2862 inspect.isabstract() now works during __init_subclass__. Patch by Nate
4721 use keyword parameters in __init_subclass__. Patch by Nate Soares.
/third_party/python/Lib/zoneinfo/
D_zoneinfo.py36 def __init_subclass__(cls): member in ZoneInfo
/third_party/python/Doc/reference/
Ddatamodel.rst1906 Whenever a class inherits from another class, :meth:`~object.__init_subclass__` is
1910 applied to, ``__init_subclass__`` solely applies to future subclasses of the
1913 .. classmethod:: object.__init_subclass__(cls)
1920 the parent's class ``__init_subclass__``. For compatibility with
1921 other classes using ``__init_subclass__``, one should take out the
1926 def __init_subclass__(cls, /, default_name, **kwargs):
1927 super().__init_subclass__(**kwargs)
1933 The default implementation ``object.__init_subclass__`` does
1939 machinery, and is never passed to ``__init_subclass__`` implementations.
2130 3) The :meth:`~object.__init_subclass__` hook is called on the
/third_party/jinja2/
Dext.py75 def __init_subclass__(cls) -> None: member in Extension
/third_party/python/Doc/whatsnew/
D3.6.rst332 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
/third_party/python/Tools/c-analyzer/
DTODO424 Objects/typeobject.c:PyId___init_subclass__ _Py_IDENTIFIER(__init_subclass__)
/third_party/python/Doc/library/
Dfunctions.rst1805 appropriate metaclass machinery (usually :meth:`~object.__init_subclass__`)
/third_party/python/Objects/
Dtypeobject.c70 _Py_IDENTIFIER(__init_subclass__);