Skip to content

Sync mypy with recent runtime updates in typing #7013

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 8 commits into from
Jun 18, 2019

Conversation

ilevkivskyi
Copy link
Member

This introduces the following updates:

  • Allow using typing.TypedDict (still support all the old forms)
  • Add a test for typing.Literal (it was already supported, but there were no tests)
  • Rename @runtime to @runtime_checkable, while keeping the alias in typing_extensions for backwards compatibility.

(Note that typing.Final and typing.Protocol were already supported and there are tests.)
See also python/typeshed#3070

@ilevkivskyi ilevkivskyi requested a review from gvanrossum June 18, 2019 00:45
@ilevkivskyi
Copy link
Member Author

Actually, it looks like this depends on python/typeshed#3070, so that should be merged first.

@ilevkivskyi ilevkivskyi mentioned this pull request Jun 18, 2019
@ilevkivskyi ilevkivskyi merged commit 73c69e5 into python:master Jun 18, 2019
@ilevkivskyi ilevkivskyi deleted the rename-runtime branch June 18, 2019 10:54
gvanrossum pushed a commit that referenced this pull request Jun 18, 2019
This introduces the following updates:
* Allow using `typing.TypedDict` (still support all the old forms)
* Add a test for `typing.Literal` (it was already supported, but there were no tests)
* Rename `@runtime` to `@runtime_checkable`, while keeping the alias in `typing_extensions` for backwards compatibility.

(Note that `typing.Final` and `typing.Protocol` were already supported and there are tests.)
See also python/typeshed#3070
gvanrossum pushed a commit that referenced this pull request Jun 18, 2019
This introduces the following updates:
* Allow using `typing.TypedDict` (still support all the old forms)
* Add a test for `typing.Literal` (it was already supported, but there were no tests)
* Rename `@runtime` to `@runtime_checkable`, while keeping the alias in `typing_extensions` for backwards compatibility.

(Note that `typing.Final` and `typing.Protocol` were already supported and there are tests.)
See also python/typeshed#3070
PattenR pushed a commit to PattenR/mypy that referenced this pull request Jun 23, 2019
This introduces the following updates:
* Allow using `typing.TypedDict` (still support all the old forms)
* Add a test for `typing.Literal` (it was already supported, but there were no tests)
* Rename `@runtime` to `@runtime_checkable`, while keeping the alias in `typing_extensions` for backwards compatibility.

(Note that `typing.Final` and `typing.Protocol` were already supported and there are tests.)
See also python/typeshed#3070
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.

3 participants