]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100673: Removed erroneous note in the get_type_hints docs (GH-100701)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 7 Jan 2023 17:38:32 +0000 (09:38 -0800)
committerGitHub <noreply@github.com>
Sat, 7 Jan 2023 17:38:32 +0000 (09:38 -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)

Co-authored-by: FrozenBob <30644137+FrozenBob@users.noreply.github.com>
Doc/library/typing.rst

index a3a6181eba2980bd03184e94d8695da9a0c87ace..7fc0aa3a8e62868f413acc8baec454c4a68c892e 100644 (file)
@@ -2767,10 +2767,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.