]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-100673: Removed erroneous note in the get_type_hints docs (#100701) (GH...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Sat, 7 Jan 2023 20:55:41 +0000 (20:55 +0000)
committerGitHub <noreply@github.com>
Sat, 7 Jan 2023 20:55:41 +0000 (12:55 -0800)
Removed erroneous note in the get_type_hints docs

typing.get_type_hints still includes base class type hints.

(cherry picked from commit deaf090699a7312cccb0637409f44de3f382389b)

Automerge-Triggered-By: GH:AlexWaygood
Doc/library/typing.rst

index d3275209e938e8d46b11fcde989d966b312cb534..d415f149027f195384e52ef4223060969712771d 100644 (file)
@@ -2233,10 +2233,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.
-
 .. function:: get_args(tp)
 .. function:: get_origin(tp)