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

This commit is contained in:
Zackery Spytz 2020-07-03 21:58:21 -06:00 committed by GitHub
parent daa0fe03a5
commit b40e434386
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`.
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
annotate arguments of any of the types mentioned above.