Skip to content

Commit bd71a43

Browse files
Fix is_typeddict markup (python#22501)
1 parent 9cd01ec commit bd71a43

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Doc/library/typing.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -1666,12 +1666,13 @@ Introspection helpers
16661666
Check if a type is a :class:`TypedDict`.
16671667

16681668
For example::
1669-
class Film(TypedDict):
1670-
title: str
1671-
year: int
16721669

1673-
is_typeddict(Film) # => True
1674-
is_typeddict(Union[list, str]) # => False
1670+
class Film(TypedDict):
1671+
title: str
1672+
year: int
1673+
1674+
is_typeddict(Film) # => True
1675+
is_typeddict(Union[list, str]) # => False
16751676

16761677
.. versionadded:: 3.10
16771678

0 commit comments

Comments
 (0)