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,7 +1,8 @@
from _typeshed import OptExcInfo
from _typeshed.wsgi import ErrorStream, InputStream, StartResponse, WSGIApplication, WSGIEnvironment
from abc import abstractmethod
from typing import IO, Callable, MutableMapping
from collections.abc import Callable, MutableMapping
from typing import IO
from .headers import Headers
from .util import FileWrapper

View File

@@ -1,6 +1,7 @@
import sys
from _typeshed.wsgi import WSGIEnvironment
from typing import IO, Any, Callable
from collections.abc import Callable
from typing import IO, Any
__all__ = ["FileWrapper", "guess_scheme", "application_uri", "request_uri", "shift_path_info", "setup_testing_defaults"]

View File

@@ -1,5 +1,6 @@
from _typeshed.wsgi import ErrorStream, InputStream, WSGIApplication
from typing import Any, Callable, Iterable, Iterator, NoReturn
from collections.abc import Callable, Iterable, Iterator
from typing import Any, NoReturn
__all__ = ["validator"]