Skip to content

Commit 608b6a6

Browse files
authored
Update pythoneval test according to PR typeshed/#1220 (ABCs -> Protocols) (#3846)
This PR contains the tests output after python/typeshed#1220 is merged and synced (note that pythoneval tests are run with full typeshed stubs).
1 parent f564776 commit 608b6a6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎test-data/unit/pythoneval.test‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ def foo(mymap) -> MyNamedTuple:
13881388
return next((mymap[key] for key in mymap), None)
13891389
[out]
13901390

1391-
[case testCanConvertTypedDictToAnySuperclassOfMapping-skip]
1391+
[case testCanConvertTypedDictToAnySuperclassOfMapping]
13921392
from mypy_extensions import TypedDict
13931393
from typing import Sized, Iterable, Container
13941394

@@ -1402,6 +1402,11 @@ o: object = p
14021402
it2: Iterable[int] = p
14031403
[out]
14041404
_testCanConvertTypedDictToAnySuperclassOfMapping.py:11: error: Incompatible types in assignment (expression has type "Point", variable has type "Iterable[int]")
1405+
_testCanConvertTypedDictToAnySuperclassOfMapping.py:11: note: Following member(s) of "Point" have conflicts:
1406+
_testCanConvertTypedDictToAnySuperclassOfMapping.py:11: note: Expected:
1407+
_testCanConvertTypedDictToAnySuperclassOfMapping.py:11: note: def __iter__(self) -> Iterator[int]
1408+
_testCanConvertTypedDictToAnySuperclassOfMapping.py:11: note: Got:
1409+
_testCanConvertTypedDictToAnySuperclassOfMapping.py:11: note: def __iter__(self) -> Iterator[str]
14051410

14061411
[case testAsyncioGatherPreciseType]
14071412
import asyncio

0 commit comments

Comments
 (0)