Skip to content

Commit

Permalink
Revert "stubtest: enable checking pos-only differences in dunders (py…
Browse files Browse the repository at this point in the history
…thon#12184)"

This reverts commit 777885f.
  • Loading branch information
hauntsaninja committed Mar 5, 2022
1 parent 4d99f7c commit 629aee7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mypy/stubtest.py
Expand Up @@ -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 '
Expand Down

0 comments on commit 629aee7

Please sign in to comment.