From: FrozenBob <30644137+FrozenBob@users.noreply.github.com> Date: Sat, 7 Jan 2023 17:31:47 +0000 (-0800) Subject: gh-100673: Removed erroneous note in the get_type_hints docs (#100701) X-Git-Tag: v3.12.0a4~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deaf090699a7312cccb0637409f44de3f382389b;p=thirdparty%2FPython%2Fcpython.git gh-100673: Removed erroneous note in the get_type_hints docs (#100701) Removed erroneous note in the get_type_hints docs typing.get_type_hints still includes base class type hints. --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 4eed6b4ea887..356f919a1897 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -2777,10 +2777,6 @@ Introspection helpers .. versionchanged:: 3.9 Added ``include_extras`` parameter as part of :pep:`593`. - .. versionchanged:: 3.10 - Calling ``get_type_hints()`` on a class no longer returns the annotations - of its base classes. - .. versionchanged:: 3.11 Previously, ``Optional[t]`` was added for function and method annotations if a default value equal to ``None`` was set.