Skip to content

Commit

Permalink
gh-116782: Mention __type_params__ in inspect.getmembers docs (#1…
Browse files Browse the repository at this point in the history
…16783)

Co-authored-by: Jelle Zijlstra <[email protected]>
  • Loading branch information
sobolevn and JelleZijlstra authored Mar 15, 2024
1 parent 8da83f3 commit 1634986
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Doc/library/inspect.rst
Original file line number Diff line number Diff line change
@@ -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 |
+-----------+-------------------+---------------------------+

0 comments on commit 1634986

Please sign in to comment.