From bd71a433408901e9705ebb0498693b3290dc8540 Mon Sep 17 00:00:00 2001 From: Andre Delfino Date: Fri, 2 Oct 2020 19:36:26 -0300 Subject: [PATCH] Fix is_typeddict markup (#22501) --- Doc/library/typing.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 3b824d0a4a8d..cbb18954a676 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 -- 2.47.3