Always alias collections.abc.Set (#6712)

This commit is contained in:
Alex Waygood authored and GitHub committed 2021-12-27 17:09:47 +01:00
1 parent 51a2cd1289
commit 975b3e901b
5 files changed
+14 -10

No files matched your search

+2 -2
View File
@@ -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