Remove a bunch of unused imports (#3323)

This commit is contained in:
Sebastian Rittau
2019-10-08 16:59:32 +02:00
committed by Jelle Zijlstra
parent a6f146e651
commit 256b3ce8ab
47 changed files with 31 additions and 95 deletions

View File

@@ -1,9 +1,6 @@
# Stubs for multiprocessing
from typing import (
Any, Callable, ContextManager, Iterable, Mapping, Optional, Dict, List,
Union, Sequence, Tuple, Type, overload
)
from typing import Any, Callable, Iterable, Mapping, Optional, List, Union, Sequence, Tuple, Type, overload
from ctypes import _CData
from logging import Logger

View File

@@ -5,10 +5,7 @@ import multiprocessing
from multiprocessing import synchronize
from multiprocessing import queues
import sys
from typing import (
Any, Callable, Iterable, Optional, List, Mapping, Sequence, Tuple, Type,
Union,
)
from typing import Any, Callable, Iterable, Optional, List, Mapping, Sequence, Type, Union
_LockLike = Union[synchronize.Lock, synchronize.RLock]

View File

@@ -1,13 +1,9 @@
from typing import Any, Optional, List, Type
from typing import Any, Optional, List
import array
import sys
import threading
import weakref
from .connection import Pipe
from threading import Lock, RLock, Semaphore, BoundedSemaphore
from threading import Event, Condition, Barrier
from queue import Queue
JoinableQueue = Queue

View File

@@ -1,4 +1,4 @@
from typing import Any, List, Optional, Tuple, Type, TypeVar
from typing import Any, List, Optional, Tuple, TypeVar
from queue import Queue

View File

@@ -1,8 +1,4 @@
from typing import (
Any, Callable, ContextManager, Iterable, Mapping, Optional, List,
Type, TypeVar, Generic, Iterator
)
from types import TracebackType
from typing import Any, Callable, ContextManager, Iterable, Mapping, Optional, List, TypeVar, Generic, Iterator
_PT = TypeVar('_PT', bound=Pool)
_S = TypeVar('_S')