@@ -661,7 +661,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
661661 and should not be set on instances of that class. Usage::
662662
663663 class Starship:
664- stats: ClassVar[Dict [str, int]] = {} # class variable
664+ stats: ClassVar[dict [str, int]] = {} # class variable
665665 damage: int = 10 # instance variable
666666
667667 :data: `ClassVar ` accepts only types and cannot be further subscribed.
@@ -774,10 +774,10 @@ These can be used as types in annotations using ``[]``, each having a unique syn
774774 * ``Annotated `` can be used with nested and generic aliases::
775775
776776 T = TypeVar('T')
777- Vec = Annotated[List[Tuple [T, T]], MaxLen(10)]
777+ Vec = Annotated[list[tuple [T, T]], MaxLen(10)]
778778 V = Vec[int]
779779
780- V == Annotated[List[Tuple [int, int]], MaxLen(10)]
780+ V == Annotated[list[tuple [int, int]], MaxLen(10)]
781781
782782 .. versionadded :: 3.9
783783
@@ -1540,7 +1540,7 @@ Functions and decorators
15401540 def process(response: None) -> None:
15411541 ...
15421542 @overload
1543- def process(response: int) -> Tuple [int, str]:
1543+ def process(response: int) -> tuple [int, str]:
15441544 ...
15451545 @overload
15461546 def process(response: bytes) -> str:
@@ -1679,8 +1679,8 @@ Introspection helpers
16791679.. class :: ForwardRef
16801680
16811681 A class used for internal typing representation of string forward references.
1682- For example, ``List ["SomeClass"] `` is implicitly transformed into
1683- ``List [ForwardRef("SomeClass")] ``. This class should not be instantiated by
1682+ For example, ``list ["SomeClass"] `` is implicitly transformed into
1683+ ``list [ForwardRef("SomeClass")] ``. This class should not be instantiated by
16841684 a user, but may be used by introspection tools.
16851685
16861686Constant
0 commit comments