]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_a...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 May 2023 14:49:49 +0000 (07:49 -0700)
committerGitHub <noreply@github.com>
Wed, 10 May 2023 14:49:49 +0000 (07:49 -0700)
commita8e902d2c2e90255c838bd99e833cef2c674c1f0
tree9e045f107fef31b6f957b8f4f9724bf6aa6212da
parent03abac239cbd94962e44a5ae06ff583de6917f80
[3.11] gh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_args` (GH-104013) (#104359)

* 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 a7a2dbbf72aceef61bfb50901bfa39bfb8d6d229)

Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/typing.rst