]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (#116783)
authorNikita Sobolev <mail@sobolevn.me>
Fri, 15 Mar 2024 15:47:46 +0000 (18:47 +0300)
committerGitHub <noreply@github.com>
Fri, 15 Mar 2024 15:47:46 +0000 (18:47 +0300)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/inspect.rst

index ed8d705da3b0b5357c465d063d97cdc8df58d636..4a0a090facb8bb4f6bf4b5128e229486ad9d4a0d 100644 (file)
@@ -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 |
 +-----------+-------------------+---------------------------+