mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-01 23:43:46 +08:00
Always alias collections.abc.Set (#6712)
This commit is contained in:
1 parent
51a2cd1289
commit
975b3e901b
5 files changed
+14
-10
No files matched your search
@@ -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