mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 21:31:09 +08:00
Properly export bytes from paramiko.py3compat (#6113)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user