mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-22 09:38:50 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, Literal
|
||||
|
||||
from .abstract.attrDef import AttrDef as AttrDef
|
||||
from .abstract.attribute import (
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
from _collections_abc import Generator, dict_keys
|
||||
from _typeshed import Incomplete, ReadableBuffer
|
||||
from types import TracebackType
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
from typing import Literal
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from pyasn1.type.base import Asn1Item
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, Literal
|
||||
|
||||
unix_socket_available: bool
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing_extensions import Final
|
||||
from typing import Final
|
||||
|
||||
from pyasn1.type.constraint import ConstraintsIntersection, ValueRangeConstraint
|
||||
from pyasn1.type.namedtype import NamedTypes
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Alias the import to avoid name clash with a class called "Final"
|
||||
from typing_extensions import Final as _Final
|
||||
from typing import Final as _Final
|
||||
|
||||
from pyasn1.type.constraint import ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint
|
||||
from pyasn1.type.namedtype import NamedTypes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from _typeshed import Incomplete, IndexableBuffer, SliceableBuffer, Unused
|
||||
from collections.abc import Callable, Mapping
|
||||
from typing import Any, TypeVar, overload
|
||||
from typing_extensions import Final, TypeAlias
|
||||
from typing import Any, Final, TypeVar, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from pyasn1.codec.ber.encoder import AbstractItemEncoder
|
||||
|
||||
|
||||
Reference in New Issue
Block a user