diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 64a537ac5..688bdf0c4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,7 @@ repos: hooks: - id: pyupgrade args: [--py3-plus, --keep-percent-format] + exclude: "tests/test_slots.py" - repo: https://github.com/PyCQA/isort rev: 5.10.1 diff --git a/tests/test_slots.py b/tests/test_slots.py index bde9d447a..89e7e93f2 100644 --- a/tests/test_slots.py +++ b/tests/test_slots.py @@ -627,7 +627,7 @@ class C: field = attr.ib() def f(self, a): - super().__init__() + super(C, self).__init__() C(field=1)