mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Fix concurrent.futures import for re-export (#4105)
Also update stubtest whitelist as a workaround.
This commit is contained in:
@@ -14,5 +14,5 @@ if sys.version_info >= (3, 8):
|
||||
from ._base import InvalidStateError as InvalidStateError
|
||||
if sys.version_info >= (3, 7):
|
||||
from ._base import BrokenExecutor as BrokenExecutor
|
||||
from .thread import ThreadPoolExecutor
|
||||
from .process import ProcessPoolExecutor
|
||||
from .thread import ThreadPoolExecutor as ThreadPoolExecutor
|
||||
from .process import ProcessPoolExecutor as ProcessPoolExecutor
|
||||
|
||||
@@ -133,6 +133,7 @@ collections.abc.Set.isdisjoint
|
||||
collections.deque.__hash__
|
||||
concurrent.futures.Executor.map
|
||||
concurrent.futures._base.Executor.map
|
||||
concurrent.futures.ProcessPoolExecutor.map
|
||||
concurrent.futures.process.ProcessPoolExecutor.map
|
||||
configparser.DuplicateOptionError.__init__
|
||||
configparser.DuplicateSectionError.__init__
|
||||
|
||||
@@ -14,5 +14,5 @@ if sys.version_info >= (3, 8):
|
||||
from ._base import InvalidStateError as InvalidStateError
|
||||
if sys.version_info >= (3, 7):
|
||||
from ._base import BrokenExecutor as BrokenExecutor
|
||||
from .thread import ThreadPoolExecutor
|
||||
from .process import ProcessPoolExecutor
|
||||
from .thread import ThreadPoolExecutor as ThreadPoolExecutor
|
||||
from .process import ProcessPoolExecutor as ProcessPoolExecutor
|
||||
|
||||
Reference in New Issue
Block a user