Skip to content

Update supported features #855

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 5 commits into from
Aug 29, 2021
Merged

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Aug 24, 2021

  • Built-in generics are only partly supported.
  • Pipe unions are not partly supported.
  • ParamSpec is partly and type guards are completely supported.

Also fix a syntax problem, use pipe syntax in examples where applicable, and don't use built-in generics in examples where not applicable.

PEP 585 [#pep585]_ built-in generics are generally supported, with
the following exceptions:

* Built-in generics don't work in type aliases.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To help this stay up to date, it would be useful to link to the appropriate mypy issues.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, although I would propose to link to the typeshed tracking issues as they give a bit better overview for all type checkers.

Restructure unsupported features section
@JelleZijlstra JelleZijlstra merged commit 3ed2adb into python:master Aug 29, 2021
@srittau srittau deleted the stubs-supported branch August 29, 2021 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants