Skip to content

Update supported features#855

Merged
JelleZijlstra merged 5 commits into
python:masterfrom
srittau:stubs-supported
Aug 29, 2021
Merged

Update supported features#855
JelleZijlstra merged 5 commits into
python:masterfrom
srittau:stubs-supported

Conversation

@srittau
Copy link
Copy Markdown
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.

Comment thread docs/stubs.rst
PEP 585 [#pep585]_ built-in generics are generally supported, with
the following exceptions:

* Built-in generics don't work in type aliases.
Copy link
Copy Markdown
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
Copy Markdown
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