Skip to content
Prev Previous commit
Next Next commit
typing docs
  • Loading branch information
hauntsaninja committed Feb 21, 2023
commit 476a25970adc339bac3be4a5ee2642402d54c63e
3 changes: 1 addition & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2076,8 +2076,7 @@ Corresponding to collections in :mod:`collections.abc`
annotate arguments of any of the types mentioned above.

.. deprecated:: 3.9
:class:`collections.abc.ByteString` now supports subscripting (``[]``).
See :pep:`585` and :ref:`types-genericalias`.
Prefer a union, like ``bytes | bytearray | memoryview``.

.. class:: Collection(Sized, Iterable[T_co], Container[T_co])

Expand Down