mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
boto.compat, base64: fix version handling of (en|de)codebytes (#4070)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -31,9 +31,10 @@ if sys.version_info >= (3, 4):
|
||||
def b85decode(b: _decodable) -> bytes: ...
|
||||
|
||||
def decode(input: IO[bytes], output: IO[bytes]) -> None: ...
|
||||
def decodebytes(s: bytes) -> bytes: ...
|
||||
def encode(input: IO[bytes], output: IO[bytes]) -> None: ...
|
||||
def encodebytes(s: bytes) -> bytes: ...
|
||||
if sys.version_info >= (3,):
|
||||
def encodebytes(s: bytes) -> bytes: ...
|
||||
def decodebytes(s: bytes) -> bytes: ...
|
||||
if sys.version_info < (3, 9):
|
||||
def encodestring(s: bytes) -> bytes: ...
|
||||
def decodestring(s: bytes) -> bytes: ...
|
||||
|
||||
5
third_party/2and3/boto/compat.pyi
vendored
5
third_party/2and3/boto/compat.pyi
vendored
@@ -1,7 +1,10 @@
|
||||
import sys
|
||||
|
||||
from typing import Any
|
||||
from base64 import encodestring as encodebytes
|
||||
if sys.version_info >= (3,):
|
||||
from base64 import encodebytes as encodebytes
|
||||
else:
|
||||
from base64 import encodestring as encodebytes
|
||||
|
||||
from six.moves import http_client
|
||||
|
||||
|
||||
Reference in New Issue
Block a user