Properly export bytes from paramiko.py3compat (#6113)

This commit is contained in:
Jake Bailey
2021-10-04 17:12:28 -07:00
committed by GitHub
parent e19b20032b
commit 368bd2cb28

View File

@@ -8,7 +8,6 @@ PY2: bool
string_types: Type[Any] | Sequence[Type[Any]]
text_type: Type[Any] | Sequence[Type[Any]]
bytes_types: Type[Any] | Sequence[Type[Any]]
bytes = bytes
integer_types: Type[Any] | Sequence[Type[Any]]
long = int
@@ -29,6 +28,8 @@ else:
StringIO = cStringIO.StringIO
BytesIO = StringIO
bytes = builtins.bytes
def byte_ord(c: int | str) -> int: ...
def byte_chr(c: int) -> bytes: ...
def byte_mask(c: int, mask: int) -> bytes: ...