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,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

View File

@@ -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

View File

@@ -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

View File

@@ -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