diff --git a/conformance/tests/dataclasses_transform_meta.py b/conformance/tests/dataclasses_transform_meta.py index c38b077a..cf33df87 100644 --- a/conformance/tests/dataclasses_transform_meta.py +++ b/conformance/tests/dataclasses_transform_meta.py @@ -25,8 +25,8 @@ def model_field( class ModelMeta(type): not_a_field: str - def __init__(self, not_a_field: str) -> None: - self.not_a_field = not_a_field + def __init__(self, *args, **kwargs) -> None: + self.not_a_field: str = "not a field" class ModelBase(metaclass=ModelMeta): diff --git a/conformance/tests/protocols_class_objects.py b/conformance/tests/protocols_class_objects.py index 7ffc5e7c..79de5120 100644 --- a/conformance/tests/protocols_class_objects.py +++ b/conformance/tests/protocols_class_objects.py @@ -93,8 +93,8 @@ class ConcreteC2: class CMeta(type): attr1: int - def __init__(self, attr1: int) -> None: - self.attr1 = attr1 + def __init__(self, *args, **kwargs) -> None: + self.attr1: int = 1 class ConcreteC3(metaclass=CMeta):