Import from collections.abc wherever possible (#7635)

This commit is contained in:
Alex Waygood
2022-04-18 11:50:37 +01:00
committed by GitHub
parent a17b3afb16
commit 97a74bc1aa
230 changed files with 449 additions and 348 deletions

View File

@@ -1,6 +1,7 @@
import sys
from _typeshed import SupportsRead, _T_co
from typing import Any, Iterable, NoReturn, Protocol
from collections.abc import Iterable
from typing import Any, NoReturn, Protocol
from xml.sax.handler import ContentHandler, ErrorHandler
from xml.sax.xmlreader import Locator, XMLReader

View File

@@ -1,7 +1,7 @@
from _typeshed import SupportsWrite
from codecs import StreamReaderWriter, StreamWriter
from collections.abc import Mapping
from io import RawIOBase, TextIOBase
from typing import Mapping
from xml.sax import handler, xmlreader
def escape(data: str, entities: Mapping[str, str] = ...) -> str: ...

View File

@@ -1,4 +1,4 @@
from typing import Mapping
from collections.abc import Mapping
class XMLReader:
def __init__(self) -> None: ...