bpo-33864: Clarify the docs for typing.ByteString (GH-21311)

(cherry picked from commit b40e434386)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
Miss Islington (bot) 2020-07-03 21:05:41 -07:00 committed by GitHub
parent 941117aaa3
commit 1cbcf9833f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -672,7 +672,7 @@ The module defines the following classes, functions and decorators:
A generic version of :class:`collections.abc.ByteString`. A generic version of :class:`collections.abc.ByteString`.
This type represents the types :class:`bytes`, :class:`bytearray`, This type represents the types :class:`bytes`, :class:`bytearray`,
and :class:`memoryview`. and :class:`memoryview` of byte sequences.
As a shorthand for this type, :class:`bytes` can be used to As a shorthand for this type, :class:`bytes` can be used to
annotate arguments of any of the types mentioned above. annotate arguments of any of the types mentioned above.