diff options
author | MonadChains <monadchains@gmail.com> | 2022-12-24 20:07:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-24 20:07:14 (GMT) |
commit | f5b7b19bf10724d831285fb04e00f763838bd555 (patch) | |
tree | 495c1ec06aa41ce5c3d899a727242c6d7ac78d4c /Doc/library/typing.rst | |
parent | e4b43ebb3afbd231a4e5630e7e358aa3093f8677 (diff) | |
download | cpython-f5b7b19bf10724d831285fb04e00f763838bd555.zip cpython-f5b7b19bf10724d831285fb04e00f763838bd555.tar.gz cpython-f5b7b19bf10724d831285fb04e00f763838bd555.tar.bz2 |
gh-99535: Add test for inheritance of annotations and update documentation (#99990)
Diffstat (limited to 'Doc/library/typing.rst')
-rw-r--r-- | Doc/library/typing.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 356f919..4eed6b4 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -2777,6 +2777,10 @@ 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. |