summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/typing.rst11
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