mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 20:12:08 +08:00
future first: switch the order of some if statements (#5206)
Since we're adding this to our contribution guidelines in https://github.com/python/typeshed/pull/5205
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import sys
|
||||
from typing import IO, Optional, Union
|
||||
|
||||
if sys.version_info < (3,):
|
||||
_encodable = Union[bytes, unicode]
|
||||
_decodable = Union[bytes, unicode]
|
||||
else:
|
||||
if sys.version_info >= (3, 0):
|
||||
_encodable = bytes
|
||||
_decodable = Union[bytes, str]
|
||||
else:
|
||||
_encodable = Union[bytes, unicode]
|
||||
_decodable = Union[bytes, unicode]
|
||||
|
||||
def b64encode(s: _encodable, altchars: Optional[bytes] = ...) -> bytes: ...
|
||||
def b64decode(s: _decodable, altchars: Optional[bytes] = ..., validate: bool = ...) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user