File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2090,17 +2090,11 @@ Corresponding to collections in :mod:`collections.abc`
2090
2090
2091
2091
.. class :: ByteString(Sequence[int])
2092
2092
2093
- A generic version of :class: `collections.abc.ByteString `.
2094
-
2095
2093
This type represents the types :class: `bytes `, :class: `bytearray `,
2096
2094
and :class: `memoryview ` of byte sequences.
2097
2095
2098
- As a shorthand for this type, :class: `bytes ` can be used to
2099
- annotate arguments of any of the types mentioned above.
2100
-
2101
- .. deprecated :: 3.9
2102
- :class: `collections.abc.ByteString ` now supports subscripting (``[] ``).
2103
- See :pep: `585 ` and :ref: `types-genericalias `.
2096
+ .. deprecated-removed :: 3.9 3.14
2097
+ Prefer :class: `collections.abc.Buffer `, or a union like ``bytes | bytearray | memoryview ``.
2104
2098
2105
2099
.. class :: Collection(Sized, Iterable[T_co], Container[T_co])
2106
2100
@@ -2892,5 +2886,7 @@ convenience. This is subject to change, and not all deprecations are listed.
2892
2886
| ``typing `` versions of standard | 3.9 | Undecided | :pep: `585 ` |
2893
2887
| collections | | | |
2894
2888
+----------------------------------+---------------+-------------------+----------------+
2889
+ | ``typing.ByteString `` | 3.9 | 3.14 | :gh: `91896 ` |
2890
+ +----------------------------------+---------------+-------------------+----------------+
2895
2891
| ``typing.Text `` | 3.11 | Undecided | :gh: `92332 ` |
2896
2892
+----------------------------------+---------------+-------------------+----------------+
You can’t perform that action at this time.
0 commit comments