]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Minor improvements to is_typeddict (GH-22280)
authorAndre Delfino <adelfino@gmail.com>
Wed, 16 Sep 2020 15:06:23 +0000 (12:06 -0300)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 15:06:23 +0000 (08:06 -0700)
1. The check is on the type
2. Add link to TypeDict

Doc/library/typing.rst

index bfff81e26760f520ef3674046aa5b012af0ffe28..d31c65d38e1abbbf07c004549db787923f0402d9 100644 (file)
@@ -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):