Update typing_extensions imports in third-party stubs (#11245)

This commit is contained in:
Sebastian Rittau
2024-01-05 15:40:13 +01:00
committed by GitHub
parent 1b471a9a0a
commit b6eaadcfe5
488 changed files with 715 additions and 845 deletions

View File

@@ -1,7 +1,7 @@
from _typeshed import SupportsItems
from collections.abc import Callable, Iterable, Iterator
from typing import Any, NamedTuple, TypeVar, overload
from typing_extensions import Literal, Self, TypeAlias
from typing import Any, Literal, NamedTuple, TypeVar, overload
from typing_extensions import Self, TypeAlias
_T = TypeVar("_T")
_ListOrTuple: TypeAlias = list[_T] | tuple[_T, ...]

View File

@@ -1,6 +1,6 @@
from collections.abc import Callable, MutableMapping
from typing import Any, Generic, TypeVar, overload
from typing_extensions import Literal, Self, TypeAlias
from typing import Any, Generic, Literal, TypeVar, overload
from typing_extensions import Self, TypeAlias
from webob.request import Request
from webob.response import Response

View File

@@ -3,8 +3,8 @@ from _typeshed.wsgi import WSGIEnvironment
from collections.abc import Callable, Collection, ItemsView, Iterator, KeysView, MutableMapping, ValuesView
from datetime import date, datetime, timedelta
from hashlib import _Hash
from typing import Any, Protocol, TypeVar, overload
from typing_extensions import Literal, TypeAlias
from typing import Any, Literal, Protocol, TypeVar, overload
from typing_extensions import TypeAlias
from webob.descriptors import _AsymmetricProperty
from webob.request import Request

View File

@@ -2,8 +2,8 @@ from _typeshed import SupportsItems, SupportsKeysAndGetItem
from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
from collections.abc import Iterable
from string import Template
from typing import Any, Protocol
from typing_extensions import Literal, Self
from typing import Any, Literal, Protocol
from typing_extensions import Self
from webob.response import Response

View File

@@ -2,8 +2,8 @@ from _typeshed import SupportsItems, SupportsKeysAndGetItem
from _typeshed.wsgi import WSGIEnvironment
from cgi import FieldStorage
from collections.abc import Collection, Iterable, Iterator, MutableMapping
from typing import Any, TypeVar, overload
from typing_extensions import Literal, Self
from typing import Any, Literal, TypeVar, overload
from typing_extensions import Self
_T = TypeVar("_T")
_KT = TypeVar("_KT")

View File

@@ -14,8 +14,8 @@ from cgi import FieldStorage
from collections.abc import Iterable, Mapping
from re import Pattern
from tempfile import _TemporaryFileWrapper
from typing import IO, Any, ClassVar, Protocol, TypeVar, overload
from typing_extensions import Literal, Self, TypeAlias, TypedDict
from typing import IO, Any, ClassVar, Literal, Protocol, TypedDict, TypeVar, overload
from typing_extensions import Self, TypeAlias
from webob.acceptparse import _AcceptCharsetProperty, _AcceptEncodingProperty, _AcceptLanguageProperty, _AcceptProperty
from webob.byterange import Range

View File

@@ -2,8 +2,8 @@ from _typeshed import SupportsItems, SupportsRead
from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
from collections.abc import Iterable, Iterator, Sequence
from datetime import timedelta
from typing import IO, Any, Protocol
from typing_extensions import Literal, TypeAlias, TypedDict
from typing import IO, Any, Literal, Protocol, TypedDict
from typing_extensions import TypeAlias
from webob.byterange import ContentRange
from webob.cachecontrol import _ResponseCacheControl