File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -772,14 +772,20 @@ n = 4
772
772
t = ('',) * n
773
773
t + 1
774
774
[out]
775
- _program.py:3: error: Unsupported operand types for + ("Tuple[str, ...]" and "int")
775
+ _program.py:3: error: No overload variant of "__add__" of "tuple" matches argument type "int"
776
+ _program.py:3: note: Possible overload variants:
777
+ _program.py:3: note: def __add__(self, Tuple[str, ...]) -> Tuple[str, ...]
778
+ _program.py:3: note: def __add__(self, Tuple[Any, ...]) -> Tuple[Any, ...]
776
779
777
780
[case testMultiplyTupleByIntegerReverse]
778
781
n = 4
779
782
t = n * ('',)
780
783
t + 1
781
784
[out]
782
- _program.py:3: error: Unsupported operand types for + ("Tuple[str, ...]" and "int")
785
+ _program.py:3: error: No overload variant of "__add__" of "tuple" matches argument type "int"
786
+ _program.py:3: note: Possible overload variants:
787
+ _program.py:3: note: def __add__(self, Tuple[str, ...]) -> Tuple[str, ...]
788
+ _program.py:3: note: def __add__(self, Tuple[Any, ...]) -> Tuple[Any, ...]
783
789
784
790
[case testDictWithKeywordArgs]
785
791
from typing import Dict, Any, List
You can’t perform that action at this time.
0 commit comments