8000 Replace frozenset with FrozenSet by ilevkivskyi · Pull Request #1057 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Replace frozenset with FrozenSet #1057

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 21, 2017

Conversation

ilevkivskyi
Copy link
Member

This is a continuation of #993
I also make FrozenSet special in typing.pyi following recent changes to mypy (it is now treated the same way as Set).

@JelleZijlstra JelleZijlstra merged commit ed9f70c 8000 into python:master Mar 21, 2017
@JelleZijlstra
Copy link
Member

Thanks!

gvanrossum added a commit that referenced this pull request Mar 21, 2017
grievejia added a commit to grievejia/typeshed that referenced this pull request Mar 4, 2020
The convariance was lost in python#1057
JelleZijlstra added a commit that referenced this pull request Mar 5, 2020
The convariance was lost in #1057
hswong3i pushed a commit to alvistack/python-typeshed that referenced this pull request May 25, 2025
… get_type_hints() (python#1057)

* PEP 655 Add interaction w/ required/optional keys

Change TypedDict to respect keys that are marked as Required
or NotRequired (requires PEP 560).
Make TypedDict and is_typeddict accessible if typing
doesn't implement Required.

* PEP 655 Add interaction with get_type_hints()

Replace _strip_annotations() with _strip_extras() to strip Annotated, Required
and NotRequired.
Change get_type_hints() to pass include_extras=True to newer versions of
typing.get_type_hints() and use _strip_extras().
Make get_type_hints accessible if typing
doesn't implement Required.
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.

2 participants
0