mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fix type for base64.b64encode, it should accept str or bytes (#736)
Fixes #735
This commit is contained in:
committed by
Guido van Rossum
parent
5ba7abc559
commit
d18a225ec2
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user