From ccea6e82da47745d2f110d57ab1fce26ec7e5089 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 15 Mar 2024 16:54:59 +0100 Subject: [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 16349868d396cc1bff5188de3638321e87fe0293) Co-authored-by: Nikita Sobolev Co-authored-by: Jelle Zijlstra --- Doc/library/inspect.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index c4c381b..698a3e9 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 | +-----------+-------------------+---------------------------+ -- cgit v0.12