Skip to content

Commit abb09ae

Browse files
authored
Revert "Update int_pow test to match new overloads (#9415)"
This reverts commit bbd6677.
1 parent bbd6677 commit abb09ae

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test-data/unit/cmdline.test

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -636,10 +636,7 @@ reveal_type(a**(-2)) # N: Revealed type is 'builtins.float'
636636
reveal_type(a**b) # N: Revealed type is 'Any'
637637
reveal_type(a.__pow__(2)) # N: Revealed type is 'builtins.int'
638638
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
639+
a.__pow__() # E: Too few arguments for "__pow__" of "int"
643640

644641
[case testDisallowAnyGenericsBuiltinCollections]
645642
# cmd: mypy m.py

0 commit comments

Comments
 (0)