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

Fixes #735
This commit is contained in:
thomascellerier authored and Guido van Rossum committed 2016-12-05 11:15:40 -08:00
1 parent 5ba7abc559
commit d18a225ec2
1 file changed
+2 -2
+2 -2
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: ...