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.
This commit is contained in:
FrozenBob 2023-01-07 09:31:47 -08:00 committed by GitHub
parent 7116030a25
commit deaf090699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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.