mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 02:51:28 +08:00
Break cycle between typing and collections. (Requires a fix in mypy.)
This commit is contained in:
1 parent
e8a477d69d
commit
23ec1ff96a
2 files changed
+2
-4
No files matched your search
@@ -1,7 +1,6 @@
|
||||
# Stubs for typing (Python 2.7)
|
||||
|
||||
from abc import abstractmethod, ABCMeta
|
||||
import collections
|
||||
|
||||
# Definitions of special type checking related constructs. Their definition
|
||||
# are not used, so their value does not matter.
|
||||
@@ -28,7 +27,7 @@ Union = TypeAlias(object)
|
||||
Optional = TypeAlias(object)
|
||||
List = TypeAlias(object)
|
||||
Dict = TypeAlias(object)
|
||||
DefaultDict = collections.defaultdict
|
||||
DefaultDict = TypeAlias(object)
|
||||
Set = TypeAlias(object)
|
||||
|
||||
# Predefined type variables.
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
# Stubs for typing
|
||||
|
||||
from abc import abstractmethod, ABCMeta
|
||||
import collections
|
||||
|
||||
# Definitions of special type checking related constructs. Their definition
|
||||
# are not used, so their value does not matter.
|
||||
@@ -29,7 +28,7 @@ Union = TypeAlias(object)
|
||||
Optional = TypeAlias(object)
|
||||
List = TypeAlias(object)
|
||||
Dict = TypeAlias(object)
|
||||
DefaultDict = collections.defaultdict
|
||||
DefaultDict = TypeAlias(object)
|
||||
Set = TypeAlias(object)
|
||||
|
||||
# Predefined type variables.
|
||||
|
||||
Reference in new issue
Block a user