Fix type for base64.b64encode, it should accept str or bytes (#736)

Fixes #735
This commit is contained in:
thomascellerier
2016-12-05 20:15:40 +01:00
committed by Guido van Rossum
parent 5ba7abc559
commit d18a225ec2

View File

@@ -2,10 +2,10 @@
# Based on http://docs.python.org/3.2/library/base64.html
from typing import IO
from typing import IO, Union
def b64encode(s: bytes, altchars: bytes = ...) -> bytes: ...
def b64decode(s: bytes, altchars: bytes = ...,
def b64decode(s: Union[bytes, str], altchars: bytes = ...,
validate: bool = ...) -> bytes: ...
def standard_b64encode(s: bytes) -> bytes: ...
def standard_b64decode(s: bytes) -> bytes: ...