mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable, Sequence
|
||||
from typing import TypeVar
|
||||
from typing_extensions import Final
|
||||
from typing import Final, TypeVar
|
||||
|
||||
from tensorflow import Tensor, _TensorCompatible
|
||||
from tensorflow.data import Dataset
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterable, Mapping
|
||||
from types import TracebackType
|
||||
from typing import NamedTuple
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
from typing import Literal, NamedTuple
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from tensorflow import _DTypeLike, _ShapeLike, _TensorCompatible
|
||||
from tensorflow._aliases import TensorLike
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
from abc import ABC, abstractmethod
|
||||
from collections.abc import Callable
|
||||
from typing import Any, TypeVar, overload
|
||||
from typing_extensions import Final, Literal, Self, TypeAlias, TypeGuard
|
||||
from typing import Any, Final, Literal, TypeVar, overload
|
||||
from typing_extensions import Self, TypeAlias, TypeGuard
|
||||
|
||||
from tensorflow import Tensor, _TensorCompatible
|
||||
from tensorflow._aliases import KerasSerializable
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
# The types here are all undocumented, but all feature columns are return types of the
|
||||
# public functions in tf.feature_column. As they are undocumented internals while some
|
||||
# common methods are included, they are incomplete and do not have getattr Incomplete fallback.
|
||||
|
||||
from _typeshed import Incomplete
|
||||
from abc import ABC, ABCMeta, abstractmethod
|
||||
from collections.abc import Callable, Sequence
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
from typing import Literal
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
import tensorflow as tf
|
||||
from tensorflow import _ShapeLike
|
||||
|
||||
Reference in New Issue
Block a user