]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100673: Removed erroneous note in the get_type_hints docs (#100701)
authorFrozenBob <30644137+FrozenBob@users.noreply.github.com>
Sat, 7 Jan 2023 17:31:47 +0000 (09:31 -0800)
committerGitHub <noreply@github.com>
Sat, 7 Jan 2023 17:31:47 +0000 (17:31 +0000)
Removed erroneous note in the get_type_hints docs

typing.get_type_hints still includes base class type hints.

Doc/library/typing.rst

index 4eed6b4ea88741e47a531c5731b34a72a190c3b5..356f919a1897b29719d127b5288e96c138a3a6ff 100644 (file)
@@ -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.