Third-party stubs: import from collections.abc where possible (#7637)

This commit is contained in:
Alex Waygood
2022-04-16 14:52:57 +01:00
committed by GitHub
parent ee09d9eb19
commit 653f2c6ba4
146 changed files with 268 additions and 156 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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]: ...