]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_args...
authorchgnrdv <52372310+chgnrdv@users.noreply.github.com>
Wed, 10 May 2023 14:48:55 +0000 (17:48 +0300)
committerGitHub <noreply@github.com>
Wed, 10 May 2023 14:48:55 +0000 (07:48 -0700)
commita7a2dbbf72aceef61bfb50901bfa39bfb8d6d229
tree259df5157848d01fbeb6de6c7aac6dcd8d9e49c4
parentce8d3db25660b029fa589a2072f4daf2a8723c50
gh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_args` (#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

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/typing.rst