Visitar URL original
gh-99535: Add test for inheritance of annotations and update documentation by MonadChains · Pull Request #99990 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add note to get_type_hints
  • Loading branch information
MonadChains committed Dec 6, 2022
commit 671a262a77003415debe81560515330af38fc2e7
4 changes: 4 additions & 0 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2773,6 +2773,10 @@ Introspection helpers
.. versionchanged:: 3.9
Added ``include_extras`` parameter as part of :pep:`593`.

.. versionchanged:: 3.10
``__annotations__`` of a class does not contain anymore the annotations
Comment thread
MonadChains marked this conversation as resolved.
Outdated
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.
Expand Down