mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[doc] Add link to Generic in typing (GH-22125)
(cherry picked from commit 5bfd60fc2b
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
This commit is contained in:
parent
9308173f88
commit
335eb57823
1 changed files with 1 additions and 1 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue