[Python-checkins] [doc] Add link to Generic in typing (GH-22125)

Andre Delfino webhook-mailer at python.org
Mon Sep 7 01:29:51 EDT 2020


https://github.com/python/cpython/commit/5bfd60fc2bf26bd6fa23a3a50c7990b7f68b3ea3
commit: 5bfd60fc2bf26bd6fa23a3a50c7990b7f68b3ea3
branch: master
author: Andre Delfino <adelfino at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-09-06T22:29:38-07:00
summary:

[doc] Add link to Generic in typing (GH-22125)

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 6d6b76c1d0895..3125ae97808a9 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -818,7 +818,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]:



More information about the Python-checkins mailing list