summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2024-03-15 15:47:46 (GMT)
committerGitHub <noreply@github.com>2024-03-15 15:47:46 (GMT)
commit16349868d396cc1bff5188de3638321e87fe0293 (patch)
treeeb3e26a4b225c140962b7b656ac73dfa4955b24e /Doc/library/inspect.rst
parent8da83f3386da603605358dc9ec68796daa5ef455 (diff)
downloadcpython-16349868d396cc1bff5188de3638321e87fe0293.zip
cpython-16349868d396cc1bff5188de3638321e87fe0293.tar.gz
cpython-16349868d396cc1bff5188de3638321e87fe0293.tar.bz2
gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (#116783)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index ed8d705..4a0a090 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 |
+-----------+-------------------+---------------------------+