From: Andre Delfino Date: Fri, 2 Oct 2020 22:36:26 +0000 (-0300) Subject: Fix is_typeddict markup (#22501) X-Git-Tag: v3.10.0a1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd71a433408901e9705ebb0498693b3290dc8540;p=thirdparty%2FPython%2Fcpython.git Fix is_typeddict markup (#22501) --- 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