Skip to content

Commit cb06463

Browse files
fix tuple add pythoneval tests (python#7584)
Needed for python/typeshed#3252. Tested by pulling in the typeshed branch in the subproject.
1 parent 5af5a90 commit cb06463

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test-data/unit/pythoneval.test

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,14 +772,20 @@ n = 4
772772
t = ('',) * n
773773
t + 1
774774
[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, ...]
776779

777780
[case testMultiplyTupleByIntegerReverse]
778781
n = 4
779782
t = n * ('',)
780783
t + 1
781784
[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, ...]
783789

784790
[case testDictWithKeywordArgs]
785791
from typing import Dict, Any, List

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy