We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd6677 commit abb09aeCopy full SHA for abb09ae
test-data/unit/cmdline.test
@@ -636,10 +636,7 @@ reveal_type(a**(-2)) # N: Revealed type is 'builtins.float'
636
reveal_type(a**b) # N: Revealed type is 'Any'
637
reveal_type(a.__pow__(2)) # N: Revealed type is 'builtins.int'
638
reveal_type(a.__pow__(a)) # N: Revealed type is 'Any'
639
-a.__pow__() # E: All overload variants of "__pow__" of "int" require at least one argument \
640
- # N: Possible overload variants: \
641
- # N: def __pow__(self, Literal[2], Optional[int] = ...) -> int \
642
- # N: def __pow__(self, int, Optional[int] = ...) -> Any
+a.__pow__() # E: Too few arguments for "__pow__" of "int"
643
644
[case testDisallowAnyGenericsBuiltinCollections]
645
# cmd: mypy m.py
0 commit comments