mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Import from collections.abc wherever possible (#7635)
This commit is contained in:
@@ -2,10 +2,10 @@ import sys
|
||||
import threading
|
||||
from _typeshed import Self
|
||||
from abc import abstractmethod
|
||||
from collections.abc import Container, Iterable, Iterator, Sequence
|
||||
from collections.abc import Callable, Container, Iterable, Iterator, Sequence
|
||||
from logging import Logger
|
||||
from types import TracebackType
|
||||
from typing import Any, Callable, Generic, Protocol, TypeVar, overload
|
||||
from typing import Any, Generic, Protocol, TypeVar, overload
|
||||
from typing_extensions import Literal, ParamSpec, SupportsIndex
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import sys
|
||||
from collections.abc import Generator, Iterable, Mapping, MutableMapping, MutableSequence
|
||||
from collections.abc import Callable, Generator, Iterable, Mapping, MutableMapping, MutableSequence
|
||||
from multiprocessing.connection import Connection
|
||||
from multiprocessing.context import BaseContext, Process
|
||||
from multiprocessing.queues import Queue, SimpleQueue
|
||||
from threading import Lock, Semaphore, Thread
|
||||
from types import TracebackType
|
||||
from typing import Any, Callable, Generic, TypeVar
|
||||
from typing import Any, Generic, TypeVar
|
||||
from weakref import ref
|
||||
|
||||
from ._base import Executor, Future
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import queue
|
||||
import sys
|
||||
from collections.abc import Iterable, Mapping, Set as AbstractSet
|
||||
from collections.abc import Callable, Iterable, Mapping, Set as AbstractSet
|
||||
from threading import Lock, Semaphore, Thread
|
||||
from typing import Any, Callable, Generic, TypeVar
|
||||
from typing import Any, Generic, TypeVar
|
||||
from weakref import ref
|
||||
|
||||
from ._base import Executor, Future
|
||||
|
||||
Reference in New Issue
Block a user