[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 16349868d3)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Miss Islington (bot) 2024-03-15 16:54:59 +01:00 committed by GitHub
parent 8336cb2b6f
commit ccea6e82da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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