Browse Source

Fix is_typeddict markup (#22501)

pull/22505/head
Andre Delfino 5 years ago
committed by GitHub
parent
commit
bd71a43340
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      Doc/library/typing.rst

11
Doc/library/typing.rst

@ -1666,12 +1666,13 @@ Introspection helpers
Check if a type is a :class:`TypedDict`.
For example::
class Film(TypedDict):
title: str
year: int
is_typeddict(Film) # => True
is_typeddict(Union[list, str]) # => False
class Film(TypedDict):
title: str
year: int
is_typeddict(Film) # => True
is_typeddict(Union[list, str]) # => False
.. versionadded:: 3.10

Loading…
Cancel
Save