Skip to content

Commit

Permalink
stubtest: enable checking pos-only differences in dunders (#12184)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Feb 15, 2022
1 parent cd3dfbd commit 777885f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mypy/stubtest.py
Expand Up @@ -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 '
Expand Down

0 comments on commit 777885f

Please sign in to comment.