mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from typing import Iterable, NoReturn, Sequence
|
||||
from collections.abc import Iterable, Sequence
|
||||
from typing import NoReturn
|
||||
|
||||
from ..collection import Collection
|
||||
from ..parser import ParserContext, ParseResult
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Iterable
|
||||
from collections.abc import Iterable
|
||||
from typing import Any
|
||||
|
||||
from .collection import Collection
|
||||
from .config import Config
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import threading
|
||||
from collections.abc import Callable, Iterable, Mapping
|
||||
from contextlib import AbstractContextManager
|
||||
from logging import Logger
|
||||
from types import TracebackType
|
||||
from typing import Any, Callable, Iterable, Mapping, NamedTuple
|
||||
from typing import Any, NamedTuple
|
||||
|
||||
LOG_FORMAT: str
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import threading
|
||||
from typing import Iterable
|
||||
from collections.abc import Iterable
|
||||
|
||||
class StreamWatcher(threading.local):
|
||||
def submit(self, stream) -> Iterable[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user