Lines Matching defs:__init__

441     def __init__(self, getitem):
838 def __init__(self, arg, is_argument=True, module=None, *, is_class=False):
931 """Mixin giving __init__ bound and variance arguments.
938 def __init__(self, bound, covariant, contravariant):
1012 def __init__(self, name, *constraints, bound=None,
1015 super().__init__(bound, covariant, contravariant)
1060 def __init__(self, name):
1126 def __init__(self, origin):
1150 def __init__(self, origin):
1209 def __init__(self, name, *, bound=None, covariant=False, contravariant=False):
1211 super().__init__(bound, covariant, contravariant)
1251 def __init__(self, origin, *, inst=True, name=None):
1346 def __init__(self, origin, args, *, inst=True, name=None,
1348 super().__init__(origin, inst=inst, name=name)
1546 def __init__(self, origin, nparams, *, inst=True, name=None):
1549 super().__init__(origin, inst=inst, name=name)
1889 '__init__', '__module__', '__new__', '__slots__',
1924 # Already using a custom `__init__`. No need to calculate correct
1925 # `__init__` to call. This can lead to RecursionError. See bpo-45121.
1926 if cls.__init__ is not _no_init_or_replace_init:
1929 # Initially, `__init__` of a protocol subclass is set to `_no_init_or_replace_init`.
1931 # searches for a proper new `__init__` in the MRO. The new `__init__`
1932 # replaces the subclass' old `__init__` (ie `_no_init_or_replace_init`). Subsequent
1934 # `__init__` and no longer call `_no_init_or_replace_init`.
1936 init = base.__dict__.get('__init__', _no_init_or_replace_init)
1938 cls.__init__ = init
1942 cls.__init__ = object.__init__
1944 cls.__init__(self, *args, **kwargs)
1977 # assigned in __init__.
2096 if cls.__init__ is Protocol.__init__:
2097 cls.__init__ = _no_init_or_replace_init
2111 def __init__(self, origin, metadata):
2115 super().__init__(origin, origin)
2850 _prohibited = frozenset({'__new__', '__init__', '__slots__', '__getnewargs__',
3135 def __init__(self, name, tp):
3438 ``__init__`` methods that accept ``id`` and ``name``.