Skip to content

Commit 05e5d58

Browse files
authored
TypedDict: update test for changes to keys, values, items (#8104)
The signature of TypedDict's keys, values, items will be updated in typeshed in: python/typeshed#3529 The relevant issue is: python/typeshed#3473 That PR fails testTypedDictMappingMethods https://travis-ci.org/python/typeshed/builds/621439570 Tested by using my patched version of typeshed: ln -sf ~/typeshed mypy/typeshed pytest -n0 -k testTypedDictMappingMethods Co-authored-by: hauntsaninja <>
1 parent 581c24d commit 05e5d58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-data/unit/pythoneval.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,9 +1117,9 @@ _testTypedDictMappingMethods.py:5: note: Revealed type is 'builtins.str*'
11171117
_testTypedDictMappingMethods.py:6: note: Revealed type is 'typing.Iterator[builtins.str*]'
11181118
_testTypedDictMappingMethods.py:7: note: Revealed type is 'builtins.int'
11191119
_testTypedDictMappingMethods.py:8: note: Revealed type is 'builtins.bool'
1120-
_testTypedDictMappingMethods.py:9: note: Revealed type is 'typing.AbstractSet[builtins.str*]'
1121-
_testTypedDictMappingMethods.py:10: note: Revealed type is 'typing.AbstractSet[Tuple[builtins.str*, builtins.object*]]'
1122-
_testTypedDictMappingMethods.py:11: note: Revealed type is 'typing.ValuesView[builtins.object*]'
1120+
_testTypedDictMappingMethods.py:9: note: Revealed type is 'typing.KeysView[builtins.str]'
1121+
_testTypedDictMappingMethods.py:10: note: Revealed type is 'typing.ItemsView[builtins.str, builtins.object]'
1122+
_testTypedDictMappingMethods.py:11: note: Revealed type is 'typing.ValuesView[builtins.object]'
11231123
_testTypedDictMappingMethods.py:12: note: Revealed type is 'TypedDict('_testTypedDictMappingMethods.Cell', {'value': builtins.int})'
11241124
_testTypedDictMappingMethods.py:13: note: Revealed type is 'builtins.int'
11251125
_testTypedDictMappingMethods.py:15: error: Unexpected TypedDict key 'invalid'

0 commit comments

Comments
 (0)