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,5 +1,6 @@
from _typeshed import SupportsRead
from typing import IO, Any, Callable
from collections.abc import Callable
from typing import IO, Any
from .decoder import JSONDecodeError as JSONDecodeError, JSONDecoder as JSONDecoder
from .encoder import JSONEncoder as JSONEncoder

View File

@@ -1,4 +1,5 @@
from typing import Any, Callable
from collections.abc import Callable
from typing import Any
__all__ = ["JSONDecoder", "JSONDecodeError"]

View File

@@ -1,4 +1,5 @@
from typing import Any, Callable, Iterator, Pattern
from collections.abc import Callable, Iterator
from typing import Any, Pattern
ESCAPE: Pattern[str]
ESCAPE_ASCII: Pattern[str]