Skip to content

Commit b3752a6

Browse files
authored
Revert "stubtest pos-only differences in dunders (#12184)" (#12293)
This reverts commit 777885f. To help with python/typeshed#7441 and reduce risk of stubtest issues interfering with a mypy release. The extra type correctness here is really minimal. Co-authored-by: hauntsaninja <>
1 parent 4d99f7c commit b3752a6

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)