Skip to content

[3.11] gh-104010: Separate and improve docs for typing.get_origin and typing.get_args (GH-104013) - #104359

Merged
JelleZijlstra merged 1 commit into
python:3.11from
miss-islington:backport-a7a2dbb-3.11
May 10, 2023
Merged

JelleZijlstra merged 1 commit into
python:3.11from
miss-islington:backport-a7a2dbb-3.11

Conversation

@miss-islington

@miss-islington miss-islington commented May 10, 2023 •

Copy link
Copy Markdown
Contributor
  • separate documentation and examples for both functions
  • add examples demonstrating behaviour with unsupported types
  • document return value of get_origin for ParamSpecArgs and ParamSpecKwargs instances

(cherry picked from commit a7a2dbb)

Co-authored-by: chgnrdv 52372310+chgnrdv@users.noreply.github.com
Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com


📚 Documentation preview 📚: https://cpython-previews--104359.org.readthedocs.build/

…d `typing.get_args` (pythonGH-104013)

* separate documentation and examples for both functions
* add examples demonstrating behaviour with unsupported types
* document return value of `get_origin` for `ParamSpecArgs` and `ParamSpecKwargs` instances

(cherry picked from commit a7a2dbb)

Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

4 participants