Always alias collections.abc.Set (#6712)

This commit is contained in:
Alex Waygood
2021-12-27 16:09:47 +00:00
committed by GitHub
parent 51a2cd1289
commit 975b3e901b
5 changed files with 14 additions and 10 deletions

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