]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Add link to Generic in typing (GH-22125)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 19 Oct 2020 23:08:19 +0000 (16:08 -0700)
committerGitHub <noreply@github.com>
Mon, 19 Oct 2020 23:08:19 +0000 (16:08 -0700)
(cherry picked from commit 5bfd60fc2bf26bd6fa23a3a50c7990b7f68b3ea3)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Doc/library/typing.rst

index e8f34e44a0c0ecedcdc637c393b13a8c9c8c6bed..67e8a3fa9e50df7ef3eea2c577c5e8d5a113fa01 100644 (file)
@@ -821,7 +821,7 @@ These are not used in annotations. They are building blocks for creating generic
 
     Type variables exist primarily for the benefit of static type
     checkers.  They serve as the parameters for generic types as well
-    as for generic function definitions.  See class Generic for more
+    as for generic function definitions.  See :class:`Generic` for more
     information on generic types.  Generic functions work as follows::
 
        def repeat(x: T, n: int) -> Sequence[T]: