@@ -37,10 +37,10 @@ implementations:
3737* ``float `` (:ref: `native operations <float-ops >`)
3838* ``bool `` (:ref: `native operations <bool-ops >`)
3939* ``str `` (:ref: `native operations <str-ops >`)
40- * ``List [T] `` (:ref: `native operations <list-ops >`)
41- * ``Dict [K, V] `` (:ref: `native operations <dict-ops >`)
42- * ``Set [T] `` (:ref: `native operations <set-ops >`)
43- * ``Tuple [T, ...] `` (variable-length tuple; :ref: `native operations <tuple-ops >`)
40+ * ``list [T] `` (:ref: `native operations <list-ops >`)
41+ * ``dict [K, V] `` (:ref: `native operations <dict-ops >`)
42+ * ``set [T] `` (:ref: `native operations <set-ops >`)
43+ * ``tuple [T, ...] `` (variable-length tuple; :ref: `native operations <tuple-ops >`)
4444* ``None ``
4545
4646The link after each type lists all supported native, optimized
@@ -61,10 +61,10 @@ variable. For example, here we have a runtime type error on the final
6161line of ``example `` (the ``Any `` type means an arbitrary, unchecked
6262value)::
6363
64- from typing import List, Any
64+ from typing import Any
6565
66- def example(a: List [Any]) -> None:
67- b: List [int] = a # No error -- items are not checked
66+ def example(a: list [Any]) -> None:
67+ b: list [int] = a # No error -- items are not checked
6868 print(b[0]) # Error here -- got str, but expected int
6969
7070 example(["x"])
@@ -126,7 +126,7 @@ Tuple types
126126
127127Fixed-length
128128`tuple types <https://mypy.readthedocs.io/en/stable/kinds_of_types.html#tuple-types >`_
129- such as ``Tuple [int, str] `` are represented
129+ such as ``tuple [int, str] `` are represented
130130as :ref: `value types <value-and-heap-types >` when stored in variables,
131131passed as arguments, or returned from functions. Value types are
132132allocated in the low-level machine stack or in CPU registers, as
0 commit comments