mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 04:41: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:
@@ -1,9 +1,7 @@
|
||||
import sys
|
||||
from typing import Any, Dict, Generic, List, Optional, Tuple, Type, TypeVar, Union, overload
|
||||
|
||||
if sys.version_info < (3, 10):
|
||||
from _collections_abc import *
|
||||
else:
|
||||
if sys.version_info >= (3, 10):
|
||||
from typing import (
|
||||
Callable,
|
||||
ItemsView,
|
||||
@@ -17,6 +15,8 @@ else:
|
||||
Sequence,
|
||||
ValuesView,
|
||||
)
|
||||
else:
|
||||
from _collections_abc import *
|
||||
|
||||
_S = TypeVar("_S")
|
||||
_T = TypeVar("_T")
|
||||
|
||||
Reference in New Issue
Block a user