From 777885f2c26cce195f6d23c80fefae1e66dfaac2 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 15 Feb 2022 21:25:15 +0000 Subject: [PATCH] stubtest: enable checking pos-only differences in dunders (#12184) --- mypy/stubtest.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mypy/stubtest.py b/mypy/stubtest.py index df36935a801f..e67992ace5f8 100644 --- a/mypy/stubtest.py +++ b/mypy/stubtest.py @@ -594,7 +594,6 @@ def _verify_signature( runtime_arg.kind == inspect.Parameter.POSITIONAL_ONLY and not stub_arg.variable.name.startswith("__") and not stub_arg.variable.name.strip("_") == "self" - and not is_dunder(function_name, exclude_special=True) # noisy for dunder methods ): yield ( 'stub argument "{}" should be positional-only '