mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-02 01:27:31 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
1 parent
1b471a9a0a
commit
b6eaadcfe5
488 files changed
+715
-845
No files matched your search
@@ -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