Fix is_typeddict markup (#22501)

This commit is contained in:
Andre Delfino 2020-10-02 19:36:26 -03:00 committed by GitHub
parent 9cd01ece78
commit bd71a43340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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