From 368bd2cb28afd1f1f22d0390233a0789514482b5 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 4 Oct 2021 17:12:28 -0700 Subject: [PATCH] Properly export bytes from paramiko.py3compat (#6113) --- stubs/paramiko/paramiko/py3compat.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stubs/paramiko/paramiko/py3compat.pyi b/stubs/paramiko/paramiko/py3compat.pyi index c260b9b42..b41a04ff2 100644 --- a/stubs/paramiko/paramiko/py3compat.pyi +++ b/stubs/paramiko/paramiko/py3compat.pyi @@ -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: ...