mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-21 18:42:07 +08:00
Attempt to clarify the ByteString situation (#9783)
See https://github.com/python/cpython/issues/102092 This makes the behaviour of typing.ByteString better match its documentation.
This commit is contained in:
@@ -771,7 +771,7 @@ class TextIO(IO[str]):
|
||||
@abstractmethod
|
||||
def __enter__(self) -> TextIO: ...
|
||||
|
||||
class ByteString(Sequence[int], metaclass=ABCMeta): ...
|
||||
ByteString: typing_extensions.TypeAlias = bytes | bytearray | memoryview
|
||||
|
||||
# Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user