Lines Matching defs:__init__
226 sig = inspect.signature(C.__init__)
236 sig = inspect.signature(C.__init__)
485 r"__init__\(\) missing 1 required "
738 def __init__(self):
824 # Verify __init__.
826 signature = inspect.signature(cls.__init__)
886 r'__init__\(\) missing 1 required '
895 r'__init__\(\) missing 1 required '
908 r'__init__\(\) missing 1 required '
917 r'__init__\(\) missing 1 required '
960 # If there's not an __init__, then post-init won't get called.
1108 # Make sure ClassVars are ignored in __init__, __repr__, etc.
1973 def __init__(self, **kw):
2085 self.assertEqual(A.__init__.__name__, "__init__")
2093 '__init__',
2100 with self.assertRaisesRegex(TypeError, r"A\.__init__\(\) missing"):
2244 def __init__(self):
2249 # The issue is that we can't override __init__ in our class,
2250 # but it should be okay to add __init__ to us if our base has
2251 # an __init__.
2259 # Make sure that if we don't add an init, the base __init__
2277 def __init__(self):
2282 # If the class has __init__, use it no matter the value of
2288 def __init__(self, x):
2295 def __init__(self, x):
2302 def __init__(self, x):
2307 # Dataclasses inheriting from protocol should preserve their own `__init__`.
2321 def __init__(self, a):
2926 r"__init__\(\) missing 1 required positional argument: 'x'"):
3618 get_type_hints(dataclass_textanno.Bar.__init__),
3708 self.assertNotIn('__init__', vars(C))
3827 with self.assertRaisesRegex(TypeError, r"__init__\(\) got an unexpected "
3838 with self.assertRaisesRegex(TypeError, r"__init__\(\) got an unexpected "
3887 with self.assertRaisesRegex(TypeError, r"__init__\(\) got an "