mirror of
https://github.com/python/cpython.git
synced 2026-02-13 19:04:37 +00:00
[3.14] [Docs] Add missing note about Required/NotRequired/ReadOnly in get_type_hints() (GH-139565) (#140386)
[Docs] Add missing note about Required/NotRequired/ReadOnly in get_type_hints() (GH-139565)
(cherry picked from commit a752f58d6b)
Co-authored-by: Sam Bull <git@sambull.org>
This commit is contained in:
parent
62f44dda1c
commit
ba6d956eb9
1 changed files with 2 additions and 1 deletions
|
|
@ -3360,7 +3360,8 @@ Introspection helpers
|
|||
``__annotations__`` dictionaries. Annotations on classes appearing
|
||||
earlier in the :term:`method resolution order` always take precedence over
|
||||
annotations on classes appearing later in the method resolution order.
|
||||
* The function recursively replaces all occurrences of ``Annotated[T, ...]``
|
||||
* The function recursively replaces all occurrences of
|
||||
``Annotated[T, ...]``, ``Required[T]``, ``NotRequired[T]``, and ``ReadOnly[T]``
|
||||
with ``T``, unless *include_extras* is set to ``True`` (see
|
||||
:class:`Annotated` for more information).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue