Skip to content

Commit

Permalink
Add type to both lists of generic types (#10985) (#12351)
Browse files Browse the repository at this point in the history
Updates documentation for both builtin generic types and `typing` 
generic types to include `type` and `Type` respectively.
  • Loading branch information
mixed-source authored Mar 17, 2022
1 parent b09683c commit e639cfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/builtin_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Type Description
``Iterable[int]`` iterable object containing ints
``Sequence[bool]`` sequence of booleans (read-only)
``Mapping[str, int]`` mapping from ``str`` keys to ``int`` values (read-only)
``type[C]`` type object of ``C`` (``C`` is a class/type variable/union of types)
====================== ===============================

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

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

0 comments on commit e639cfd

Please sign in to comment.