FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_args` (GH-104013) by miss-islington · Pull Request #104359 · python/cpython · GitHub

/ cpython Public

[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

[3.11] gh-104010: Separate and improve docs for typing.get_origin and typing.get_args (GH-104013)#104359
JelleZijlstra merged 1 commit into
python:3.11from
miss-islington:backport-a7a2dbb-3.11

Conversation

miss-islington commented May 10, 2023
edited by github-actions Bot
Loading

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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL