Skip to content

Commit ccea6e8

Browse files
miss-islingtonsobolevnJelleZijlstra
authored
[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 1634986) Co-authored-by: Nikita Sobolev <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 8336cb2 commit ccea6e8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Doc/library/inspect.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
5555
| | __module__ | name of module in which |
5656
| | | this class was defined |
5757
+-----------+-------------------+---------------------------+
58+
| | __type_params__ | A tuple containing the |
59+
| | | :ref:`type parameters |
60+
| | | <type-params>` of |
61+
| | | a generic class |
62+
+-----------+-------------------+---------------------------+
5863
| method | __doc__ | documentation string |
5964
+-----------+-------------------+---------------------------+
6065
| | __name__ | name with which this |
@@ -103,6 +108,11 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
103108
| | | reserved for return |
104109
| | | annotations. |
105110
+-----------+-------------------+---------------------------+
111+
| | __type_params__ | A tuple containing the |
112+
| | | :ref:`type parameters |
113+
| | | <type-params>` of |
114+
| | | a generic function |
115+
+-----------+-------------------+---------------------------+
106116
| | __module__ | name of module in which |
107117
| | | this function was defined |
108118
+-----------+-------------------+---------------------------+

0 commit comments

Comments
 (0)