mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 11:32:07 +08:00
Always alias collections.abc.Set (#6712)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import queue
|
||||
import sys
|
||||
from collections.abc import Iterable, Mapping, Set # equivalent to typing.AbstractSet, not builtins.set
|
||||
from collections.abc import Iterable, Mapping, Set as AbstractSet
|
||||
from threading import Lock, Semaphore, Thread
|
||||
from typing import Any, Callable, Generic, Tuple, TypeVar
|
||||
from weakref import ref
|
||||
@@ -46,7 +46,7 @@ if sys.version_info >= (3, 7):
|
||||
class ThreadPoolExecutor(Executor):
|
||||
_max_workers: int
|
||||
_idle_semaphore: Semaphore
|
||||
_threads: Set[Thread]
|
||||
_threads: AbstractSet[Thread]
|
||||
_broken: bool
|
||||
_shutdown: bool
|
||||
_shutdown_lock: Lock
|
||||
|
||||
Reference in New Issue
Block a user