From d952af00a4d4e56f29ac407b3a9d298930701f2b Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 15 Feb 2022 20:12:25 +0000 Subject: [PATCH] stubtest: error for pos-only differences for dunder methods, too --- 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 '