mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-04 18:43:23 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -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, ...]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user