diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-03-15 15:54:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 15:54:59 (GMT) |
commit | ccea6e82da47745d2f110d57ab1fce26ec7e5089 (patch) | |
tree | 0ffc9d800b3fa4c5cf4d936783a43fdd98bdf1d3 /Doc | |
parent | 8336cb2b6f428246803b02a4e97fce49d0bb1e09 (diff) | |
download | cpython-ccea6e82da47745d2f110d57ab1fce26ec7e5089.zip cpython-ccea6e82da47745d2f110d57ab1fce26ec7e5089.tar.gz cpython-ccea6e82da47745d2f110d57ab1fce26ec7e5089.tar.bz2 |
[3.12] gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783) (#116870)
gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783)
(cherry picked from commit 16349868d396cc1bff5188de3638321e87fe0293)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/inspect.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index c4c381b..698a3e9 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -55,6 +55,11 @@ attributes (see :ref:`import-mod-attrs` for module attributes): | | __module__ | name of module in which | | | | this class was defined | +-----------+-------------------+---------------------------+ +| | __type_params__ | A tuple containing the | +| | | :ref:`type parameters | +| | | <type-params>` of | +| | | a generic class | ++-----------+-------------------+---------------------------+ | method | __doc__ | documentation string | +-----------+-------------------+---------------------------+ | | __name__ | name with which this | @@ -103,6 +108,11 @@ attributes (see :ref:`import-mod-attrs` for module attributes): | | | reserved for return | | | | annotations. | +-----------+-------------------+---------------------------+ +| | __type_params__ | A tuple containing the | +| | | :ref:`type parameters | +| | | <type-params>` of | +| | | a generic function | ++-----------+-------------------+---------------------------+ | | __module__ | name of module in which | | | | this function was defined | +-----------+-------------------+---------------------------+ |