mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-26 04:46:46 +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:
@@ -3,10 +3,10 @@ from decimal import Decimal
|
||||
from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union
|
||||
|
||||
# workaround for mypy#2010
|
||||
if sys.version_info < (3,):
|
||||
from __builtin__ import str as _str
|
||||
else:
|
||||
if sys.version_info >= (3, 0):
|
||||
from builtins import str as _str
|
||||
else:
|
||||
from __builtin__ import str as _str
|
||||
|
||||
CODESET: int
|
||||
D_T_FMT: int
|
||||
|
||||
Reference in New Issue
Block a user