Skip to content

Commit 629aee7

Browse files
author
hauntsaninja
committed
Revert "stubtest: enable checking pos-only differences in dunders (python#12184)"
This reverts commit 777885f.
1 parent 4d99f7c commit 629aee7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/stubtest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ def _verify_signature(
618618
runtime_arg.kind == inspect.Parameter.POSITIONAL_ONLY
619619
and not stub_arg.variable.name.startswith("__")
620620
and not stub_arg.variable.name.strip("_") == "self"
621+
and not is_dunder(function_name, exclude_special=True) # noisy for dunder methods
621622
):
622623
yield (
623624
'stub argument "{}" should be positional-only '

0 commit comments

Comments
 (0)