Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e639cfd

Browse files
authored
Add type to both lists of generic types (#10985) (#12351)
Updates documentation for both builtin generic types and `typing` generic types to include `type` and `Type` respectively.
1 parent b09683c commit e639cfd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/source/builtin_types.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Type Description
5353
``Iterable[int]`` iterable object containing ints
5454
``Sequence[bool]`` sequence of booleans (read-only)
5555
``Mapping[str, int]`` mapping from ``str`` keys to ``int`` values (read-only)
56+
``type[C]`` type object of ``C`` (``C`` is a class/type variable/union of types)
5657
====================== ===============================
5758

5859
The type ``dict`` is a *generic* class, signified by type arguments within
@@ -82,6 +83,7 @@ Type Description
8283
``Iterable[int]`` iterable object containing ints
8384
``Sequence[bool]`` sequence of booleans (read-only)
8485
``Mapping[str, int]`` mapping from ``str`` keys to ``int`` values (read-only)
86+
``Type[C]`` type object of ``C`` (``C`` is a class/type variable/union of types)
8587
====================== ===============================
8688

8789
``List`` is an alias for the built-in type ``list`` that supports

0 commit comments

Comments
 (0)