From: Zackery Spytz Date: Sat, 4 Jul 2020 03:58:21 +0000 (-0600) Subject: bpo-33864: Clarify the docs for typing.ByteString (GH-21311) X-Git-Tag: v3.10.0a1~449 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b40e434386cd94a367d4a256e3364771140160e7;p=thirdparty%2FPython%2Fcpython.git bpo-33864: Clarify the docs for typing.ByteString (GH-21311) --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index e85b6d697f79..e5143c5f8d9e 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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.