[Python-checkins] [doc] Minor improvements to is_typeddict (GH-22280)

Andre Delfino webhook-mailer at python.org
Wed Sep 16 11:06:32 EDT 2020


https://github.com/python/cpython/commit/83f6dcd2070a5dbd9702b32ec4ee150bb716c9a1
commit: 83f6dcd2070a5dbd9702b32ec4ee150bb716c9a1
branch: master
author: Andre Delfino <adelfino at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-09-16T08:06:23-07:00
summary:

[doc] Minor improvements to is_typeddict (GH-22280)



1. The check is on the type
2. Add link to TypeDict

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index bfff81e26760f..d31c65d38e1ab 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1660,7 +1660,7 @@ Introspection helpers
 
 .. function:: is_typeddict(tp)
 
-   Check if an annotation is a TypedDict class.
+   Check if a type is a :class:`TypedDict`.
 
    For example::
         class Film(TypedDict):



More information about the Python-checkins mailing list