binhex: improve bytes handling (#9035)

This commit is contained in:
Nikita Sobolev authored and GitHub committed 2022-10-30 06:36:30 -07:00
1 parent ded1090337
commit a96cb58160
2 files changed
+4 -2

No files matched your search

+1
View File
@@ -234,6 +234,7 @@ else:
WriteableBuffer: TypeAlias = bytearray | memoryview | array.array[Any] | mmap.mmap | ctypes._CData # stable
# Same as _WriteableBuffer, but also includes read-only buffer types (like bytes).
ReadableBuffer: TypeAlias = ReadOnlyBuffer | WriteableBuffer # stable
_BufferWithLen: TypeAlias = ReadableBuffer # not stable # noqa: Y047
ExcInfo: TypeAlias = tuple[type[BaseException], BaseException, TracebackType]
OptExcInfo: TypeAlias = Union[ExcInfo, tuple[None, None, None]]