MCPcopy Index your code
hub / github.com/python/cpython / __init_subclass__

Method __init_subclass__

Lib/typing.py:517–519  ·  view source on GitHub ↗
(cls, /, *args, **kwds)

Source from the content-addressed store, hash-verified

515 __slots__ = ('__weakref__',)
516
517 def __init_subclass__(cls, /, *args, **kwds):
518 if '_root' not in kwds:
519 raise TypeError("Cannot subclass special typing classes")
520
521
522class _NotIterable:

Callers 3

_generic_init_subclassFunction · 0.45
__init_subclass__Method · 0.45
__new__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected