summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2020-10-02 22:36:26 (GMT)
committerGitHub <noreply@github.com>2020-10-02 22:36:26 (GMT)
commitbd71a433408901e9705ebb0498693b3290dc8540 (patch)
treedc5f7153c539cce6c8d69943d8e73e8e22371e50
parent9cd01ece78e63bf98a1d25f70d5a020adf07ca4a (diff)
downloadcpython-bd71a433408901e9705ebb0498693b3290dc8540.zip
cpython-bd71a433408901e9705ebb0498693b3290dc8540.tar.gz
cpython-bd71a433408901e9705ebb0498693b3290dc8540.tar.bz2
Fix is_typeddict markup (#22501)
-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