From: Nikita Sobolev Date: Fri, 15 Mar 2024 15:47:46 +0000 (+0300) Subject: gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (#116783) X-Git-Tag: v3.13.0a6~295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16349868d396cc1bff5188de3638321e87fe0293;p=thirdparty%2FPython%2Fcpython.git gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (#116783) Co-authored-by: Jelle Zijlstra --- diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index ed8d705da3b0..4a0a090facb8 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -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 | +| | | ` 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 | +| | | ` of | +| | | a generic function | ++-----------+-------------------+---------------------------+ | | __module__ | name of module in which | | | | this function was defined | +-----------+-------------------+---------------------------+