mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
gh-100673: Removed erroneous note in the get_type_hints docs (GH-100701)
Removed erroneous note in the get_type_hints docs
typing.get_type_hints still includes base class type hints.
(cherry picked from commit deaf090699
)
Co-authored-by: FrozenBob <30644137+FrozenBob@users.noreply.github.com>
This commit is contained in:
parent
72263f2a20
commit
a3e2407f5c
1 changed files with 0 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue