Addressed minor errors caught by pyright in stdlib stubs (#4880)

* Removed unused import symbols from stdlib stubs and fixed a few other errors detected by pyright. I did a similar pass several months ago; these were introduced since then.

* Added a few missing types and type arguments. Removed unused import statement. Removed default values that caused overloads to have overlapping signatures.

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2021-01-01 06:00:09 -08:00
committed by GitHub
parent 6458a41568
commit 0cf9a38eb8
7 changed files with 7 additions and 8 deletions

View File

@@ -15,9 +15,9 @@ _S = TypeVar("_S")
class ThreadPoolExecutor(Executor):
if sys.version_info >= (3, 7):
_work_queue: queue.SimpleQueue
_work_queue: queue.SimpleQueue[Any]
else:
_work_queue: queue.Queue
_work_queue: queue.Queue[Any]
if sys.version_info >= (3, 7):
def __init__(
self,