Skip to content

Commit ba6d956

Browse files
[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 a752f58) Co-authored-by: Sam Bull <[email protected]>
1 parent 62f44dd commit ba6d956

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3360,7 +3360,8 @@ Introspection helpers
33603360
``__annotations__`` dictionaries. Annotations on classes appearing
33613361
earlier in the :term:`method resolution order` always take precedence over
33623362
annotations on classes appearing later in the method resolution order.
3363-
* The function recursively replaces all occurrences of ``Annotated[T, ...]``
3363+
* The function recursively replaces all occurrences of
3364+
``Annotated[T, ...]``, ``Required[T]``, ``NotRequired[T]``, and ``ReadOnly[T]``
33643365
with ``T``, unless *include_extras* is set to ``True`` (see
33653366
:class:`Annotated` for more information).
33663367

0 commit comments

Comments
 (0)