Skip to content
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

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

Merged
merged 1 commit into from
May 10, 2023

Conversation

miss-islington
Copy link
Contributor

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

  • 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 [email protected]
Co-authored-by: Jelle Zijlstra [email protected]


📚 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 <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants