mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
[doc] Add link to Generic in typing (GH-22125)
This commit is contained in:
parent
67c998de24
commit
5bfd60fc2b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
Type variables exist primarily for the benefit of static type
|
||||||
checkers. They serve as the parameters for generic types as well
|
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::
|
information on generic types. Generic functions work as follows::
|
||||||
|
|
||||||
def repeat(x: T, n: int) -> Sequence[T]:
|
def repeat(x: T, n: int) -> Sequence[T]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue