mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
[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:
parent
8336cb2b6f
commit
ccea6e82da
1 changed files with 10 additions and 0 deletions
|
@ -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 |
|
||||
+-----------+-------------------+---------------------------+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue