From 1820c6c129c06782d67bb7ea96b6553fdb902bba Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 30 Sep 2019 03:11:01 -0700 Subject: [PATCH] fix tuple add pythoneval tests Needed for python/typeshed#3252. Tested by pulling in the typeshed branch in the subproject. --- test-data/unit/pythoneval.test | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test-data/unit/pythoneval.test b/test-data/unit/pythoneval.test index ada2870aff96..c314d465038f 100644 --- a/test-data/unit/pythoneval.test +++ b/test-data/unit/pythoneval.test @@ -772,14 +772,20 @@ n = 4 t = ('',) * n t + 1 [out] -_program.py:3: error: Unsupported operand types for + ("Tuple[str, ...]" and "int") +_program.py:3: error: No overload variant of "__add__" of "tuple" matches argument type "int" +_program.py:3: note: Possible overload variants: +_program.py:3: note: def __add__(self, Tuple[str, ...]) -> Tuple[str, ...] +_program.py:3: note: def __add__(self, Tuple[Any, ...]) -> Tuple[Any, ...] [case testMultiplyTupleByIntegerReverse] n = 4 t = n * ('',) t + 1 [out] -_program.py:3: error: Unsupported operand types for + ("Tuple[str, ...]" and "int") +_program.py:3: error: No overload variant of "__add__" of "tuple" matches argument type "int" +_program.py:3: note: Possible overload variants: +_program.py:3: note: def __add__(self, Tuple[str, ...]) -> Tuple[str, ...] +_program.py:3: note: def __add__(self, Tuple[Any, ...]) -> Tuple[Any, ...] [case testDictWithKeywordArgs] from typing import Dict, Any, List