diff options
author | Andre Delfino <adelfino@gmail.com> | 2020-10-02 22:36:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 22:36:26 (GMT) |
commit | bd71a433408901e9705ebb0498693b3290dc8540 (patch) | |
tree | dc5f7153c539cce6c8d69943d8e73e8e22371e50 /Doc/library | |
parent | 9cd01ece78e63bf98a1d25f70d5a020adf07ca4a (diff) | |
download | cpython-bd71a433408901e9705ebb0498693b3290dc8540.zip cpython-bd71a433408901e9705ebb0498693b3290dc8540.tar.gz cpython-bd71a433408901e9705ebb0498693b3290dc8540.tar.bz2 |
Fix is_typeddict markup (#22501)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/typing.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 3b824d0..cbb1895 100644 --- a/Doc/library/typing.rst +++ b/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 |