mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Remove a bunch of unused imports (#3323)
This commit is contained in:
committed by
Jelle Zijlstra
parent
a6f146e651
commit
256b3ce8ab
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user