diff --git a/mypy/stubtest.py b/mypy/stubtest.py index a08b0aac1097..3320f2370735 100644 --- a/mypy/stubtest.py +++ b/mypy/stubtest.py @@ -618,6 +618,7 @@ 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 '