[3.11] gh-102500: collections.abc.Buffer doesn't exist in 3.11 (#104317)

This commit is contained in:
Shantanu 2023-05-09 02:27:15 -07:00 committed by GitHub
parent b7622e7a05
commit 15624b445e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2094,7 +2094,7 @@ Corresponding to collections in :mod:`collections.abc`
and :class:`memoryview` of byte sequences.
.. deprecated-removed:: 3.9 3.14
Prefer :class:`collections.abc.Buffer`, or a union like ``bytes | bytearray | memoryview``.
Prefer ``typing_extensions.Buffer``, or a union like ``bytes | bytearray | memoryview``.
.. class:: Collection(Sized, Iterable[T_co], Container[T_co])