Skip to content

TypedDict: fix keys, values, items return value #3529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2020

Conversation

hauntsaninja
Copy link
Collaborator

Fixes #3473

@JelleZijlstra
Copy link
Member

You have a CI failure, because there is a mypy test that asserted the old type. Could you submit a PR to mypy that fixes that test? Then I should be able to merge the mypy and typeshed PRs and get everything green again.

hauntsaninja pushed a commit to hauntsaninja/mypy that referenced this pull request Dec 8, 2019
The signature of TypedDict's keys, values, items will be updated in
typeshed in:
python/typeshed#3529

The relevant issue is:
python/typeshed#3473
hauntsaninja pushed a commit to hauntsaninja/mypy that referenced this pull request Dec 8, 2019
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
@JelleZijlstra JelleZijlstra merged commit 4b360ca into python:master Mar 14, 2020
JelleZijlstra pushed a commit to python/mypy that referenced this pull request Mar 14, 2020
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 <>
@hauntsaninja hauntsaninja deleted the 3473 branch March 14, 2020 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypedDict.keys() and items() should return KeysView and ItemsView
2 participants