]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 15 Mar 2024 15:54:59 +0000 (16:54 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Mar 2024 15:54:59 +0000 (15:54 +0000)
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>
Doc/library/inspect.rst

index c4c381bb8335b844032679ade6084da45b58fba5..698a3e92b3c0419a4147d3fe08bd2055d2001712 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 |
 +-----------+-------------------+---------------------------+