]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix is_typeddict markup (#22501)
authorAndre Delfino <adelfino@gmail.com>
Fri, 2 Oct 2020 22:36:26 +0000 (19:36 -0300)
committerGitHub <noreply@github.com>
Fri, 2 Oct 2020 22:36:26 +0000 (15:36 -0700)
Doc/library/typing.rst

index 3b824d0a4a8da0012974c6da29c3cc17743b64e5..cbb18954a6764a4d8325f0186149027836a2b797 100644 (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