gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (#116783)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Nikita Sobolev 2024-03-15 18:47:46 +03:00 committed by GitHub
parent 8da83f3386
commit 16349868d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View 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 |
+-----------+-------------------+---------------------------+