mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 17:18:30 +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:
@@ -11,10 +11,10 @@ from yaml.tokens import * # noqa: F403
|
||||
from . import resolver as resolver # Help mypy a bit; this is implied by loader and dumper
|
||||
from .cyaml import *
|
||||
|
||||
if sys.version_info < (3,):
|
||||
_Str = Union[Text, str]
|
||||
else:
|
||||
if sys.version_info >= (3, 0):
|
||||
_Str = str
|
||||
else:
|
||||
_Str = Union[Text, str]
|
||||
# FIXME: the functions really return py2:unicode/py3:str if encoding is None, otherwise py2:str/py3:bytes. Waiting for python/mypy#5621
|
||||
_Yaml = Any
|
||||
|
||||
|
||||
Reference in New Issue
Block a user