From 4b981fcb040bfc58cd245f0a8cf03eee20bc867d Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Thu, 26 Oct 2023 15:45:37 +0100 Subject: [PATCH 1/9] Add stubs for `importlib.(resources.)simple` --- stdlib/VERSIONS | 2 ++ stdlib/importlib/resources/simple.pyi | 49 +++++++++++++++++++++++++++ stdlib/importlib/simple.pyi | 11 ++++++ tests/stubtest_allowlists/py311.txt | 4 --- tests/stubtest_allowlists/py312.txt | 2 -- 5 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 stdlib/importlib/resources/simple.pyi create mode 100644 stdlib/importlib/simple.pyi diff --git a/stdlib/VERSIONS b/stdlib/VERSIONS index acaa818d65b8..d24e85c8fe44 100644 --- a/stdlib/VERSIONS +++ b/stdlib/VERSIONS @@ -156,6 +156,8 @@ importlib.readers: 3.10- importlib.resources: 3.7- importlib.resources.abc: 3.11- importlib.resources.readers: 3.11- +importlib.resources.simple: 3.11- +importlib.simple: 3.11- inspect: 2.7- io: 2.7- ipaddress: 3.3- diff --git a/stdlib/importlib/resources/simple.pyi b/stdlib/importlib/resources/simple.pyi new file mode 100644 index 000000000000..ab65db1f638d --- /dev/null +++ b/stdlib/importlib/resources/simple.pyi @@ -0,0 +1,49 @@ +import abc +import sys +from _typeshed import Incomplete, OpenTextMode, OpenBinaryMode, Unused +from collections.abc import Iterator +from io import TextIOWrapper +from typing import Any, BinaryIO, IO, NoReturn, overload +from typing_extensions import Literal, Never + +if sys.version_info >= (3, 11): + from .abc import Traversable, TraversableResources + + class SimpleReader(abc.ABC): + @property + @abc.abstractmethod + def package(self) -> str: ... + @abc.abstractmethod + def children(self) -> list[SimpleReader]: ... + @abc.abstractmethod + def resources(self) -> list[str]: ... + @abc.abstractmethod + def open_binary(self, resource: str) -> BinaryIO: ... + @property + def name(self) -> str: ... + + class ResourceHandle(Traversable, metaclass=abc.ABCMeta): + parent: ResourceContainer + def __init__(self, parent: ResourceContainer, name: str) -> None: ... + def is_file(self) -> Literal[True]: ... + def is_dir(self) -> Literal[False]: ... + @overload # type: ignore[override] + def open(self, mode: OpenTextMode = "r", *args: Incomplete, **kwargs: Incomplete) -> TextIOWrapper: ... + @overload + def open(self, mode: OpenBinaryMode, *args: Unused, **kwargs: Unused) -> BinaryIO: ... + @overload + def open(self, mode: str, *args: Incomplete, **kwargs: Incomplete) -> IO[Any]: ... + def joinpath(self, name: Never) -> NoReturn: ... # type: ignore[override] + + class ResourceContainer(Traversable, metaclass=abc.ABCMeta): + reader: SimpleReader + def __init__(self, reader: SimpleReader) -> None: ... + def is_dir(self) -> Literal[True]: ... + def is_file(self) -> Literal[False]: ... + def iterdir(self) -> Iterator[ResourceHandle | ResourceContainer]: ... + def open(self, *args: Never, **kwargs: Never) -> NoReturn: ... # type: ignore[override] + def joinpath(self, *descendants: str) -> Traversable: ... + + class TraversableReader(TraversableResources, SimpleReader, metaclass=abc.ABCMeta): + def files(self) -> ResourceContainer: ... + diff --git a/stdlib/importlib/simple.pyi b/stdlib/importlib/simple.pyi new file mode 100644 index 000000000000..58d8c6617082 --- /dev/null +++ b/stdlib/importlib/simple.pyi @@ -0,0 +1,11 @@ +import sys + +if sys.version_info >= (3, 11): + from .resources.simple import ( + ResourceContainer as ResourceContainer, + ResourceHandle as ResourceHandle, + SimpleReader as SimpleReader, + TraversableReader as TraversableReader, + ) + + __all__ = ["SimpleReader", "ResourceHandle", "ResourceContainer", "TraversableReader"] diff --git a/tests/stubtest_allowlists/py311.txt b/tests/stubtest_allowlists/py311.txt index 916f969323e8..58c4e4c25fe2 100644 --- a/tests/stubtest_allowlists/py311.txt +++ b/tests/stubtest_allowlists/py311.txt @@ -17,10 +17,6 @@ tkinter._VersionInfoType.__doc__ typing.NewType.__call__ typing.NewType.__mro_entries__ -# Modules that exist at runtime, but are missing from typeshed -importlib.resources.simple -importlib.simple - # Modules that exist at runtime, but shouldn't be added to typeshed ctypes.test ctypes\.test\..+ diff --git a/tests/stubtest_allowlists/py312.txt b/tests/stubtest_allowlists/py312.txt index a0a465e54ee5..bfca6d7664eb 100644 --- a/tests/stubtest_allowlists/py312.txt +++ b/tests/stubtest_allowlists/py312.txt @@ -1,7 +1,5 @@ # Modules that exist at runtime, but are missing from typeshed zipfile._path.glob -importlib.resources.simple -importlib.simple # Errors that also existed on Python 3.11 _collections_abc.AsyncIterable.__class_getitem__ From 050a10eab322cbb2a2eda7d46d707f1144fce3e2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 14:46:34 +0000 Subject: [PATCH 2/9] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stdlib/importlib/resources/simple.pyi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stdlib/importlib/resources/simple.pyi b/stdlib/importlib/resources/simple.pyi index ab65db1f638d..71b7f3915752 100644 --- a/stdlib/importlib/resources/simple.pyi +++ b/stdlib/importlib/resources/simple.pyi @@ -1,9 +1,9 @@ import abc import sys -from _typeshed import Incomplete, OpenTextMode, OpenBinaryMode, Unused +from _typeshed import Incomplete, OpenBinaryMode, OpenTextMode, Unused from collections.abc import Iterator from io import TextIOWrapper -from typing import Any, BinaryIO, IO, NoReturn, overload +from typing import IO, Any, BinaryIO, NoReturn, overload from typing_extensions import Literal, Never if sys.version_info >= (3, 11): @@ -46,4 +46,3 @@ if sys.version_info >= (3, 11): class TraversableReader(TraversableResources, SimpleReader, metaclass=abc.ABCMeta): def files(self) -> ResourceContainer: ... - From 4e265b3bb1a90344d1726ceefee961e1c890e5f2 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 27 Oct 2023 10:05:54 +0100 Subject: [PATCH 3/9] Remove a no-longer-needed `type: ignore` following https://github.com/python/typeshed/commit/1c184fea33d50ba430410cf1b25d4aea2df2981e --- stdlib/importlib/resources/simple.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/importlib/resources/simple.pyi b/stdlib/importlib/resources/simple.pyi index 71b7f3915752..a2d5e9c9ceec 100644 --- a/stdlib/importlib/resources/simple.pyi +++ b/stdlib/importlib/resources/simple.pyi @@ -27,7 +27,7 @@ if sys.version_info >= (3, 11): def __init__(self, parent: ResourceContainer, name: str) -> None: ... def is_file(self) -> Literal[True]: ... def is_dir(self) -> Literal[False]: ... - @overload # type: ignore[override] + @overload def open(self, mode: OpenTextMode = "r", *args: Incomplete, **kwargs: Incomplete) -> TextIOWrapper: ... @overload def open(self, mode: OpenBinaryMode, *args: Unused, **kwargs: Unused) -> BinaryIO: ... From e4fd18cf2e1e70a9243492f8c5c0d1d40dcc9ab4 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 27 Oct 2023 10:15:17 +0100 Subject: [PATCH 4/9] Also do minor cleanup for `importlib.readers` following https://github.com/python/typeshed/commit/1c184fea33d50ba430410cf1b25d4aea2df2981e --- stdlib/importlib/readers.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/importlib/readers.pyi b/stdlib/importlib/readers.pyi index ca7bd4dcab3d..9b1137fc2455 100644 --- a/stdlib/importlib/readers.pyi +++ b/stdlib/importlib/readers.pyi @@ -4,6 +4,7 @@ import pathlib import sys +import zipfile from _typeshed import Incomplete, StrPath from collections.abc import Iterable, Iterator from io import BufferedReader @@ -36,7 +37,7 @@ if sys.version_info >= (3, 10): def __init__(self, loader, module: str) -> None: ... def open_resource(self, resource: str) -> BufferedReader: ... def is_resource(self, path: StrPath) -> bool: ... - def files(self): ... + def files(self) -> zipfile.Path: ... class MultiplexedPath(abc.Traversable): def __init__(self, *paths: abc.Traversable) -> None: ... From 5d3661733cef8a8c3037d147b22dded9b822764e Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 27 Oct 2023 11:45:49 +0100 Subject: [PATCH 5/9] Another unneeded `type: ignore` following https://github.com/python/typeshed/commit/1c184fea33d50ba430410cf1b25d4aea2df2981e --- stdlib/importlib/readers.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/importlib/readers.pyi b/stdlib/importlib/readers.pyi index 9b1137fc2455..3f431aabf329 100644 --- a/stdlib/importlib/readers.pyi +++ b/stdlib/importlib/readers.pyi @@ -49,7 +49,7 @@ if sys.version_info >= (3, 10): if sys.version_info >= (3, 12): def joinpath(self, *descendants: str) -> abc.Traversable: ... else: - def joinpath(self, child: str) -> abc.Traversable: ... # type: ignore[override] + def joinpath(self, child: str) -> abc.Traversable: ... __truediv__ = joinpath def open(self, *args: Never, **kwargs: Never) -> NoReturn: ... # type: ignore[override] @property From a49201b95be8be823f4a4f63849f0837a8d487f7 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 27 Oct 2023 11:56:52 +0100 Subject: [PATCH 6/9] fix --- stdlib/importlib/readers.pyi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stdlib/importlib/readers.pyi b/stdlib/importlib/readers.pyi index 3f431aabf329..f34794601b59 100644 --- a/stdlib/importlib/readers.pyi +++ b/stdlib/importlib/readers.pyi @@ -46,11 +46,17 @@ if sys.version_info >= (3, 10): def read_text(self, *args: Never, **kwargs: Never) -> NoReturn: ... # type: ignore[override] def is_dir(self) -> Literal[True]: ... def is_file(self) -> Literal[False]: ... + if sys.version_info >= (3, 12): def joinpath(self, *descendants: str) -> abc.Traversable: ... + elif sys.version_info >= (3, 11): + def joinpath(self, child: str) -> abc.Traversable: ... # type: ignore[override] else: def joinpath(self, child: str) -> abc.Traversable: ... + + if sys.version_info < (3, 12): __truediv__ = joinpath + def open(self, *args: Never, **kwargs: Never) -> NoReturn: ... # type: ignore[override] @property def name(self) -> str: ... From d9f598aaac8436d4065e5a8cf447749f4c2762c9 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Sat, 28 Oct 2023 12:10:45 +0100 Subject: [PATCH 7/9] `joinpath` only exists on py311 --- stdlib/importlib/resources/simple.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/importlib/resources/simple.pyi b/stdlib/importlib/resources/simple.pyi index a2d5e9c9ceec..9502375d00a2 100644 --- a/stdlib/importlib/resources/simple.pyi +++ b/stdlib/importlib/resources/simple.pyi @@ -42,7 +42,8 @@ if sys.version_info >= (3, 11): def is_file(self) -> Literal[False]: ... def iterdir(self) -> Iterator[ResourceHandle | ResourceContainer]: ... def open(self, *args: Never, **kwargs: Never) -> NoReturn: ... # type: ignore[override] - def joinpath(self, *descendants: str) -> Traversable: ... + if sys.version_info < (3, 12): + def joinpath(self, *descendants: str) -> Traversable: ... class TraversableReader(TraversableResources, SimpleReader, metaclass=abc.ABCMeta): def files(self) -> ResourceContainer: ... From 8fd82cd0074399c41e1e3c29884983fa2bdd1ace Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 28 Oct 2023 11:11:23 +0000 Subject: [PATCH 8/9] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stubs/protobuf/google/protobuf/any_pb2.pyi | 3 ++- stubs/protobuf/google/protobuf/api_pb2.pyi | 3 ++- stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi | 5 +++-- stubs/protobuf/google/protobuf/descriptor_pb2.pyi | 5 +++-- stubs/protobuf/google/protobuf/duration_pb2.pyi | 3 ++- stubs/protobuf/google/protobuf/empty_pb2.pyi | 3 ++- stubs/protobuf/google/protobuf/field_mask_pb2.pyi | 3 ++- stubs/protobuf/google/protobuf/source_context_pb2.pyi | 3 ++- stubs/protobuf/google/protobuf/struct_pb2.pyi | 5 +++-- stubs/protobuf/google/protobuf/timestamp_pb2.pyi | 3 ++- stubs/protobuf/google/protobuf/type_pb2.pyi | 5 +++-- stubs/protobuf/google/protobuf/wrappers_pb2.pyi | 3 ++- stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi | 5 +++-- stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi | 5 +++-- stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi | 5 +++-- stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi | 5 +++-- stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi | 3 ++- stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi | 5 +++-- stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi | 5 +++-- stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi | 5 +++-- stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi | 5 +++-- stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi | 5 +++-- .../tensorflow/compiler/xla/autotune_results_pb2.pyi | 3 ++- .../tensorflow/compiler/xla/service/hlo_pb2.pyi | 5 +++-- .../tensorflow/compiler/xla/service/metrics_pb2.pyi | 5 +++-- .../tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi | 5 +++-- .../core/example/example_parser_configuration_pb2.pyi | 3 ++- stubs/tensorflow/tensorflow/core/example/example_pb2.pyi | 3 ++- stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi | 3 ++- .../core/framework/allocation_description_pb2.pyi | 3 ++- .../tensorflow/tensorflow/core/framework/api_def_pb2.pyi | 5 +++-- .../tensorflow/core/framework/attr_value_pb2.pyi | 3 ++- .../tensorflow/core/framework/cost_graph_pb2.pyi | 3 ++- .../tensorflow/core/framework/dataset_metadata_pb2.pyi | 3 ++- .../tensorflow/core/framework/dataset_options_pb2.pyi | 5 +++-- .../tensorflow/tensorflow/core/framework/dataset_pb2.pyi | 3 ++- .../tensorflow/core/framework/device_attributes_pb2.pyi | 3 ++- .../tensorflow/core/framework/full_type_pb2.pyi | 5 +++-- .../tensorflow/core/framework/function_pb2.pyi | 3 ++- stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi | 3 ++- .../core/framework/graph_transfer_info_pb2.pyi | 5 +++-- .../tensorflow/core/framework/kernel_def_pb2.pyi | 3 ++- .../tensorflow/core/framework/log_memory_pb2.pyi | 3 ++- stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi | 5 +++-- .../tensorflow/core/framework/node_def_pb2.pyi | 3 ++- .../tensorflow/tensorflow/core/framework/op_def_pb2.pyi | 3 ++- .../core/framework/optimized_function_graph_pb2.pyi | 3 ++- .../tensorflow/core/framework/reader_base_pb2.pyi | 3 ++- .../tensorflow/core/framework/resource_handle_pb2.pyi | 3 ++- .../tensorflow/core/framework/step_stats_pb2.pyi | 3 ++- .../tensorflow/tensorflow/core/framework/summary_pb2.pyi | 9 ++++----- .../tensorflow/core/framework/tensor_description_pb2.pyi | 3 ++- .../tensorflow/tensorflow/core/framework/tensor_pb2.pyi | 3 ++- .../tensorflow/core/framework/tensor_shape_pb2.pyi | 3 ++- .../tensorflow/core/framework/tensor_slice_pb2.pyi | 3 ++- stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi | 5 +++-- .../tensorflow/core/framework/variable_pb2.pyi | 5 +++-- .../tensorflow/core/framework/versions_pb2.pyi | 3 ++- .../tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi | 3 ++- .../core/protobuf/composite_tensor_variant_pb2.pyi | 3 ++- stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi | 5 +++-- .../tensorflow/core/protobuf/control_flow_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/coordination_config_pb2.pyi | 3 ++- .../core/protobuf/core_platform_payloads_pb2.pyi | 5 +++-- .../tensorflow/core/protobuf/data_service_pb2.pyi | 5 +++-- .../tensorflow/core/protobuf/debug_event_pb2.pyi | 5 +++-- stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/device_filters_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/device_properties_pb2.pyi | 3 ++- .../core/protobuf/distributed_runtime_payloads_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/error_codes_pb2.pyi | 2 +- .../tensorflow/core/protobuf/fingerprint_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/graph_debug_info_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/meta_graph_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/named_tensor_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/queue_runner_pb2.pyi | 3 ++- .../core/protobuf/remote_tensor_handle_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/rewriter_config_pb2.pyi | 5 +++-- .../tensorflow/core/protobuf/rpc_options_pb2.pyi | 4 +--- .../tensorflow/core/protobuf/saved_model_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/saved_object_graph_pb2.pyi | 5 +++-- stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi | 5 +++-- .../tensorflow/core/protobuf/service_config_pb2.pyi | 3 ++- .../tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi | 3 ++- stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi | 5 +++-- .../tensorflow/core/protobuf/tensor_bundle_pb2.pyi | 5 +++-- .../tensorflow/core/protobuf/tensorflow_server_pb2.pyi | 3 ++- .../core/protobuf/tpu/compilation_result_pb2.pyi | 5 +++-- .../tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi | 3 ++- .../core/protobuf/tpu/optimization_parameters_pb2.pyi | 5 +++-- .../tensorflow/core/protobuf/tpu/topology_pb2.pyi | 5 +++-- .../protobuf/tpu/tpu_embedding_configuration_pb2.pyi | 5 +++-- .../core/protobuf/trackable_object_graph_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/transport_options_pb2.pyi | 3 ++- .../tensorflow/core/protobuf/verifier_config_pb2.pyi | 5 +++-- stubs/tensorflow/tensorflow/core/util/event_pb2.pyi | 5 +++-- .../tensorflow/core/util/memmapped_file_system_pb2.pyi | 3 ++- .../tensorflow/core/util/saved_tensor_slice_pb2.pyi | 3 ++- stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi | 2 +- .../python/keras/protobuf/projector_config_pb2.pyi | 3 ++- .../python/keras/protobuf/saved_metadata_pb2.pyi | 3 ++- .../tensorflow/python/keras/protobuf/versions_pb2.pyi | 3 ++- .../tensorflow/tsl/protobuf/autotuning_pb2.pyi | 5 +++-- .../tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi | 3 ++- .../tensorflow/tsl/protobuf/coordination_config_pb2.pyi | 3 ++- .../tensorflow/tsl/protobuf/coordination_service_pb2.pyi | 5 +++-- .../tsl/protobuf/distributed_runtime_payloads_pb2.pyi | 3 ++- stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi | 5 +++-- .../tensorflow/tsl/protobuf/error_codes_pb2.pyi | 5 +++-- .../tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi | 3 ++- .../tensorflow/tsl/protobuf/rpc_options_pb2.pyi | 3 ++- .../tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi | 5 +++-- 112 files changed, 266 insertions(+), 161 deletions(-) diff --git a/stubs/protobuf/google/protobuf/any_pb2.pyi b/stubs/protobuf/google/protobuf/any_pb2.pyi index 398a9abadb2c..1a9040cd5cfc 100644 --- a/stubs/protobuf/google/protobuf/any_pb2.pyi +++ b/stubs/protobuf/google/protobuf/any_pb2.pyi @@ -32,10 +32,11 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.internal.well_known_types import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/api_pb2.pyi b/stubs/protobuf/google/protobuf/api_pb2.pyi index 4cedb0da9211..f4365a0e4dff 100644 --- a/stubs/protobuf/google/protobuf/api_pb2.pyi +++ b/stubs/protobuf/google/protobuf/api_pb2.pyi @@ -33,12 +33,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.source_context_pb2 import google.protobuf.type_pb2 -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi b/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi index a2e15b129f9c..0c7ed03c2a00 100644 --- a/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi +++ b/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi @@ -19,13 +19,14 @@ flag "--${NAME}_out" is passed to protoc. """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.descriptor_pb2 import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/descriptor_pb2.pyi b/stubs/protobuf/google/protobuf/descriptor_pb2.pyi index bda40e15e110..53257ff489d8 100644 --- a/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +++ b/stubs/protobuf/google/protobuf/descriptor_pb2.pyi @@ -11,12 +11,13 @@ without any other information (e.g. without reading its imports). """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/duration_pb2.pyi b/stubs/protobuf/google/protobuf/duration_pb2.pyi index d8f7931a71e7..681097d80e34 100644 --- a/stubs/protobuf/google/protobuf/duration_pb2.pyi +++ b/stubs/protobuf/google/protobuf/duration_pb2.pyi @@ -32,10 +32,11 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.internal.well_known_types import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/empty_pb2.pyi b/stubs/protobuf/google/protobuf/empty_pb2.pyi index 22ef26b7d1e7..2f1c614527bf 100644 --- a/stubs/protobuf/google/protobuf/empty_pb2.pyi +++ b/stubs/protobuf/google/protobuf/empty_pb2.pyi @@ -31,9 +31,10 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/field_mask_pb2.pyi b/stubs/protobuf/google/protobuf/field_mask_pb2.pyi index 1721c1bc6234..07012bab5bca 100644 --- a/stubs/protobuf/google/protobuf/field_mask_pb2.pyi +++ b/stubs/protobuf/google/protobuf/field_mask_pb2.pyi @@ -33,11 +33,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.well_known_types import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/source_context_pb2.pyi b/stubs/protobuf/google/protobuf/source_context_pb2.pyi index cb4fb572eadc..e11d903038f6 100644 --- a/stubs/protobuf/google/protobuf/source_context_pb2.pyi +++ b/stubs/protobuf/google/protobuf/source_context_pb2.pyi @@ -32,9 +32,10 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/struct_pb2.pyi b/stubs/protobuf/google/protobuf/struct_pb2.pyi index bf2771ec0d5d..b3716e5bab46 100644 --- a/stubs/protobuf/google/protobuf/struct_pb2.pyi +++ b/stubs/protobuf/google/protobuf/struct_pb2.pyi @@ -33,13 +33,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.well_known_types import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/timestamp_pb2.pyi b/stubs/protobuf/google/protobuf/timestamp_pb2.pyi index b8f5b636e752..f5bfbc594c92 100644 --- a/stubs/protobuf/google/protobuf/timestamp_pb2.pyi +++ b/stubs/protobuf/google/protobuf/timestamp_pb2.pyi @@ -32,10 +32,11 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.internal.well_known_types import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/type_pb2.pyi b/stubs/protobuf/google/protobuf/type_pb2.pyi index c66cd631176f..dca4537bd447 100644 --- a/stubs/protobuf/google/protobuf/type_pb2.pyi +++ b/stubs/protobuf/google/protobuf/type_pb2.pyi @@ -33,14 +33,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins import collections.abc +import sys +import typing + import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.source_context_pb2 -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/wrappers_pb2.pyi b/stubs/protobuf/google/protobuf/wrappers_pb2.pyi index 201b9258a751..9cc4a3e8fedb 100644 --- a/stubs/protobuf/google/protobuf/wrappers_pb2.pyi +++ b/stubs/protobuf/google/protobuf/wrappers_pb2.pyi @@ -12,9 +12,10 @@ These wrappers have no meaningful use within a map or a oneof since individual entries of a map or fields of a oneof can already detect presence. """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi index 36e5f70c985b..cd8d993c12ae 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi @@ -3,11 +3,12 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi index d53937df29b2..e9f840a88032 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi @@ -4,13 +4,14 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import s2clientprotocol.common_pb2 -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi index 5f605f93068f..39c19873b48c 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi @@ -4,13 +4,14 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import s2clientprotocol.common_pb2 -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi index dce11d14ba85..9839a004052d 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi @@ -3,11 +3,12 @@ isort:skip_file """ import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: diff --git a/stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi index 2077427a14b6..e954e46118e1 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi @@ -4,12 +4,13 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import s2clientprotocol.common_pb2 import s2clientprotocol.error_pb2 -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi index 9a0c9aea4f47..3afb3e820a42 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi @@ -4,13 +4,14 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import s2clientprotocol.common_pb2 -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi index c3b879600e48..c4ad8fee6be4 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi @@ -4,6 +4,9 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper @@ -17,8 +20,6 @@ import s2clientprotocol.raw_pb2 import s2clientprotocol.score_pb2 import s2clientprotocol.spatial_pb2 import s2clientprotocol.ui_pb2 -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi index a1c5360f371f..6ccd3359cc04 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi @@ -3,11 +3,12 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi index 5105e79a6db0..d76fbf1f1331 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi @@ -4,13 +4,14 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import s2clientprotocol.common_pb2 -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi index 480c4960360b..c0499b585dfe 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi @@ -4,12 +4,13 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/compiler/xla/autotune_results_pb2.pyi b/stubs/tensorflow/tensorflow/compiler/xla/autotune_results_pb2.pyi index d90b18cd68c1..1f107829d73a 100644 --- a/stubs/tensorflow/tensorflow/compiler/xla/autotune_results_pb2.pyi +++ b/stubs/tensorflow/tensorflow/compiler/xla/autotune_results_pb2.pyi @@ -18,10 +18,11 @@ limitations under the License. """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.tsl.protobuf.autotuning_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi b/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi index 46fa77106238..d3454c8ba0b9 100644 --- a/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi +++ b/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi @@ -16,13 +16,14 @@ protos as JSON, which includes the field names in the serialization. """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.compiler.xla.xla_data_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi b/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi index f39a6bd921d6..39993f67771b 100644 --- a/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi +++ b/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi @@ -3,13 +3,14 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi b/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi index f4e34a285982..a283b93afb07 100644 --- a/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi +++ b/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi @@ -18,12 +18,13 @@ limitations under the License. """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi b/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi index 52e42c6a3fc2..7b24d84e01e1 100644 --- a/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file Protocol messages for describing the configuration of the ExampleParserOp.""" import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi b/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi index 4fb6132fdf08..cd4bcd511a7e 100644 --- a/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi @@ -5,9 +5,10 @@ Protocol messages for describing input data Examples for machine learning model training or inference. """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys import tensorflow.core.example.feature_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi b/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi index 1739ce2aef40..42bfb4d4f9f0 100644 --- a/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi @@ -57,10 +57,11 @@ Example Features for a movie recommendation application: """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi index b53507ce6064..e1d5638202f1 100644 --- a/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi index 6ca86a438448..b2f1a514a69e 100644 --- a/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi @@ -6,13 +6,14 @@ overrides for client language op code generators. """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.attr_value_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi index 5e148bb273df..11566fd7fb19 100644 --- a/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi index 69f4580d5c6f..1aa0b7a153a3 100644 --- a/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi index 5ab21cfac43b..ff792ea47c46 100644 --- a/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi index 651c02975047..d31d1d267f9e 100644 --- a/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi @@ -3,12 +3,13 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.model_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi index 432d6f4f57a5..b2e987481ccf 100644 --- a/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi index 116157d43832..4b1dbd3d3ffa 100644 --- a/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi index b41f5f4da2fc..0c5e1e9d955a 100644 --- a/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi @@ -4,12 +4,13 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi index 266ceef3c17b..4f920a308aa4 100644 --- a/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.attr_value_pb2 import tensorflow.core.framework.node_def_pb2 import tensorflow.core.framework.op_def_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi index e58eab70eafd..9ff82c9d8cff 100644 --- a/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.function_pb2 import tensorflow.core.framework.node_def_pb2 import tensorflow.core.framework.versions_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi index 908dddd1fe8b..88b587cf2434 100644 --- a/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi @@ -4,13 +4,14 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.types_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi index d3b04135d493..53c54aab27da 100644 --- a/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.attr_value_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi index 45e50508459a..d3c6f0dd8261 100644 --- a/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys import tensorflow.core.framework.tensor_description_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi index 97cdf1f276b1..8c4fdf2af8e0 100644 --- a/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi @@ -4,12 +4,13 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi index e146faecf898..8e8b352b7837 100644 --- a/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.attr_value_pb2 import tensorflow.core.framework.full_type_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi index acee7309c540..0e384331dd90 100644 --- a/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.attr_value_pb2 import tensorflow.core.framework.full_type_pb2 import tensorflow.core.framework.resource_handle_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi index a9097c746f44..8709c3987750 100644 --- a/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.graph_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi index 2e06dfa7766a..3f395b4570c0 100644 --- a/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi index cda284bf2e89..d92b2f765265 100644 --- a/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi index 23f790f0d378..8261e5730ea2 100644 --- a/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.allocation_description_pb2 import tensorflow.core.framework.tensor_description_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi index a6ffc8512dfc..609abbe28650 100644 --- a/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi @@ -4,22 +4,21 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.tsl.protobuf.histogram_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions else: import typing_extensions -from tensorflow.tsl.protobuf.histogram_pb2 import ( - HistogramProto as HistogramProto, -) +from tensorflow.tsl.protobuf.histogram_pb2 import HistogramProto as HistogramProto DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi index 3fadbcb2475a..f6c348b8a14b 100644 --- a/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys import tensorflow.core.framework.allocation_description_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi index 43f84a36134f..393b94d909f6 100644 --- a/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.resource_handle_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi index cf0219ed9324..37a6a5279201 100644 --- a/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file Protocol buffer representing the shape of tensors.""" import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi index 17391655c559..cfc3e361d699 100644 --- a/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file Protocol buffer representing slices of a tensor""" import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi index 48bc3ca55ec2..9f4d4fea804f 100644 --- a/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi @@ -3,11 +3,12 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi index 4dbea275cbf7..2c7796d2f573 100644 --- a/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi @@ -4,12 +4,13 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi index 571754ba5f3f..4df61f398301 100644 --- a/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi index a53a7d5f0415..e9f986e3a24e 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi @@ -18,10 +18,11 @@ limitations under the License. """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi index 3cdfcd186540..eb143db57da9 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys import tensorflow.core.protobuf.struct_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi index 9a145bf28a70..d45828cd305c 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi @@ -4,11 +4,13 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.cost_graph_pb2 import tensorflow.core.framework.graph_pb2 import tensorflow.core.framework.step_stats_pb2 @@ -17,7 +19,6 @@ import tensorflow.core.protobuf.debug_pb2 import tensorflow.core.protobuf.rewriter_config_pb2 import tensorflow.tsl.protobuf.coordination_config_pb2 import tensorflow.tsl.protobuf.rpc_options_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi index 47f05d32b600..cb0fd3576554 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/coordination_config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/coordination_config_pb2.pyi index 43efe80f355f..fcd757622079 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/coordination_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/coordination_config_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi index 496d0096f81a..f06c008c37ba 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi @@ -3,11 +3,12 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi index 6924223b44ab..151a3d18ec47 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi @@ -3,11 +3,12 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi index fec65984da15..89570d7cef77 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi @@ -4,14 +4,15 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.protobuf.graph_debug_info_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi index f7779853a347..106a26b01072 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi index d00378cd471c..e26f3a083842 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi @@ -18,10 +18,11 @@ limitations under the License. """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi index 366f318856ae..b3ec2632a7a8 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi @@ -18,10 +18,11 @@ limitations under the License. """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/distributed_runtime_payloads_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/distributed_runtime_payloads_pb2.pyi index 3f2acfcf24bc..ed8dd9ae681e 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/distributed_runtime_payloads_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/distributed_runtime_payloads_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi index 447469dda71b..093797947d01 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi @@ -11,7 +11,6 @@ from tensorflow.tsl.protobuf.error_codes_pb2 import ( ABORTED as ABORTED, ALREADY_EXISTS as ALREADY_EXISTS, CANCELLED as CANCELLED, - Code as Code, DATA_LOSS as DATA_LOSS, DEADLINE_EXCEEDED as DEADLINE_EXCEEDED, DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_ as DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_, @@ -27,6 +26,7 @@ from tensorflow.tsl.protobuf.error_codes_pb2 import ( UNAVAILABLE as UNAVAILABLE, UNIMPLEMENTED as UNIMPLEMENTED, UNKNOWN as UNKNOWN, + Code as Code, ) DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi index bda6e036b957..be397855b80c 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys import tensorflow.core.framework.versions_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/graph_debug_info_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/graph_debug_info_pb2.pyi index e2298201ddb1..ae0527450348 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/graph_debug_info_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/graph_debug_info_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi index 18fd35693c00..0506fc7a8b1a 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi @@ -4,11 +4,12 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.graph_pb2 import tensorflow.core.framework.op_def_pb2 import tensorflow.core.framework.tensor_shape_pb2 diff --git a/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi index 419e650c8ccb..b45f134db7f6 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys import tensorflow.core.framework.tensor_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi index 332144151ce1..59d932074fc1 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.tsl.protobuf.error_codes_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi index a2bff6d62edd..55607e50b4a8 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi index 9338ba89180c..9bf638aa42bd 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi @@ -4,14 +4,15 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.attr_value_pb2 import tensorflow.core.protobuf.verifier_config_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi index 462a1076bd8e..f81919a4fc42 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi @@ -3,8 +3,6 @@ isort:skip_file """ import google.protobuf.descriptor -from tensorflow.tsl.protobuf.rpc_options_pb2 import ( - RPCOptions as RPCOptions, -) +from tensorflow.tsl.protobuf.rpc_options_pb2 import RPCOptions as RPCOptions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi index 0c412101c5aa..7c32f95070fd 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.protobuf.meta_graph_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi index 15adf4ec318d..c74ca7cedfde 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi @@ -4,19 +4,20 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 import tensorflow.core.framework.variable_pb2 import tensorflow.core.framework.versions_pb2 import tensorflow.core.protobuf.struct_pb2 import tensorflow.core.protobuf.trackable_object_graph_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi index 7f91d63a9162..a5acf0bec8f1 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi @@ -3,11 +3,12 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi index d8db4cbe077b..99465a6b94ef 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.protobuf.data_service_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi index f9198cc248de..7db51bb8518b 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi index e8341d120292..9321d8378630 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi @@ -4,15 +4,16 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi index cbb1e71ffaea..a55ef36b3c49 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi @@ -4,16 +4,17 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.tensor_slice_pb2 import tensorflow.core.framework.types_pb2 import tensorflow.core.framework.versions_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi index 624e4a471043..781baf8375ad 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi @@ -17,9 +17,10 @@ limitations under the License. ============================================================================== """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys import tensorflow.core.protobuf.cluster_pb2 import tensorflow.core.protobuf.config_pb2 import tensorflow.core.protobuf.device_filters_pb2 diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi index a4f60a5be39f..639d1049656b 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi @@ -4,14 +4,15 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.compiler.xla.service.hlo_pb2 import tensorflow.tsl.protobuf.error_codes_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi index 5b1d1c7f4b12..b296008931f0 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi index 2bfa1b94e563..c9b6adebc541 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi @@ -3,13 +3,14 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.wrappers_pb2 -import sys import tensorflow.compiler.xla.service.hlo_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi index 2c88cfeab08f..be5e58a28d5d 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi @@ -4,12 +4,13 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi index bc80fce661a2..2568ba183172 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi @@ -4,13 +4,14 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.protobuf.tpu.optimization_parameters_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi index 1c944e6abd63..0c65575824a4 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi @@ -4,11 +4,12 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.wrappers_pb2 -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi index 41c87481905f..53c27a86ecc0 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi index 4f1ce5c9cc84..4be67334c55f 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi @@ -3,11 +3,12 @@ isort:skip_file """ import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi b/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi index 113f2cf5c80d..7cfa8385cd48 100644 --- a/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi @@ -4,13 +4,14 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.core.framework.summary_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi b/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi index f04d62e218ea..0da3ecbf492a 100644 --- a/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi @@ -18,10 +18,11 @@ limitations under the License. """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi b/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi index 370e8043f1aa..597ddc5fa4bc 100644 --- a/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi @@ -17,10 +17,11 @@ debugging and manual examination. """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.tensor_slice_pb2 diff --git a/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi b/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi index 264cfa51e395..c58568965d3c 100644 --- a/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi @@ -8,8 +8,8 @@ from tensorflow.tsl.protobuf.test_log_pb2 import ( BenchmarkEntries as BenchmarkEntries, BenchmarkEntry as BenchmarkEntry, BuildConfiguration as BuildConfiguration, - CPUInfo as CPUInfo, CommitId as CommitId, + CPUInfo as CPUInfo, EntryValue as EntryValue, GPUInfo as GPUInfo, MachineConfiguration as MachineConfiguration, diff --git a/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi b/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi index 6383058a7c9e..dadeda2aa5e5 100644 --- a/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi @@ -7,10 +7,11 @@ https://github.com/tensorflow/tensorboard/blob/master/tensorboard/plugins/projec """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi b/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi index 7c793df6b426..f42202cf8ff3 100644 --- a/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi +++ b/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file Protobuf containing the metadata for each Keras object saved in a SavedModel.""" import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys import tensorflow.python.keras.protobuf.versions_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi b/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi index 94240448ecca..dd5c21cbcc4c 100644 --- a/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi +++ b/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/autotuning_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/autotuning_pb2.pyi index 23fd55c3454f..38ee640d0923 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/autotuning_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/autotuning_pb2.pyi @@ -9,15 +9,16 @@ tremendous statistical, testing, and debugging value. """ import builtins import collections.abc +import sys +import typing + import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys import tensorflow.tsl.protobuf.dnn_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi index 413a1bd35dc2..a24cd0932392 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi index 43efe80f355f..fcd757622079 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi index 82a36f2e3379..7165c7199683 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi @@ -4,13 +4,14 @@ isort:skip_file """ import builtins import collections.abc +import sys +import typing + import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi index 3f2acfcf24bc..ed8dd9ae681e 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi index c01a06d3e3b4..34faf347349c 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi @@ -4,13 +4,14 @@ isort:skip_file LINT: LEGACY_NAMES""" import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.wrappers_pb2 -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi index 0ac76cd89e9a..0aa45efaf8cc 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi @@ -5,11 +5,12 @@ TODO(b/247876220): Change package and java_package once we figure out how to migrate. """ import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi index 71beb87eeccb..69ee0c2277e1 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi @@ -4,10 +4,11 @@ isort:skip_file """ import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi index 0a54a3807d5b..62370eb9cc1d 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi @@ -3,9 +3,10 @@ isort:skip_file """ import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi index a04bdc198824..48b4f7a5b43c 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi @@ -4,14 +4,15 @@ isort:skip_file Protocol messages for describing the results of benchmarks and unit tests.""" import builtins import collections.abc +import sys +import typing + import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.wrappers_pb2 -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions From 283ad665023f36784a43da24c448a95c9fe93917 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Sat, 28 Oct 2023 12:31:48 +0100 Subject: [PATCH 9/9] Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" This reverts commit 8fd82cd0074399c41e1e3c29884983fa2bdd1ace. --- stubs/protobuf/google/protobuf/any_pb2.pyi | 3 +-- stubs/protobuf/google/protobuf/api_pb2.pyi | 3 +-- stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi | 5 ++--- stubs/protobuf/google/protobuf/descriptor_pb2.pyi | 5 ++--- stubs/protobuf/google/protobuf/duration_pb2.pyi | 3 +-- stubs/protobuf/google/protobuf/empty_pb2.pyi | 3 +-- stubs/protobuf/google/protobuf/field_mask_pb2.pyi | 3 +-- stubs/protobuf/google/protobuf/source_context_pb2.pyi | 3 +-- stubs/protobuf/google/protobuf/struct_pb2.pyi | 5 ++--- stubs/protobuf/google/protobuf/timestamp_pb2.pyi | 3 +-- stubs/protobuf/google/protobuf/type_pb2.pyi | 5 ++--- stubs/protobuf/google/protobuf/wrappers_pb2.pyi | 3 +-- stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi | 5 ++--- stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi | 5 ++--- stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi | 5 ++--- stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi | 5 ++--- stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi | 3 +-- stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi | 5 ++--- stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi | 5 ++--- stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi | 5 ++--- stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi | 5 ++--- stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi | 5 ++--- .../tensorflow/compiler/xla/autotune_results_pb2.pyi | 3 +-- .../tensorflow/compiler/xla/service/hlo_pb2.pyi | 5 ++--- .../tensorflow/compiler/xla/service/metrics_pb2.pyi | 5 ++--- .../tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi | 5 ++--- .../core/example/example_parser_configuration_pb2.pyi | 3 +-- stubs/tensorflow/tensorflow/core/example/example_pb2.pyi | 3 +-- stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi | 3 +-- .../core/framework/allocation_description_pb2.pyi | 3 +-- .../tensorflow/tensorflow/core/framework/api_def_pb2.pyi | 5 ++--- .../tensorflow/core/framework/attr_value_pb2.pyi | 3 +-- .../tensorflow/core/framework/cost_graph_pb2.pyi | 3 +-- .../tensorflow/core/framework/dataset_metadata_pb2.pyi | 3 +-- .../tensorflow/core/framework/dataset_options_pb2.pyi | 5 ++--- .../tensorflow/tensorflow/core/framework/dataset_pb2.pyi | 3 +-- .../tensorflow/core/framework/device_attributes_pb2.pyi | 3 +-- .../tensorflow/core/framework/full_type_pb2.pyi | 5 ++--- .../tensorflow/core/framework/function_pb2.pyi | 3 +-- stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi | 3 +-- .../core/framework/graph_transfer_info_pb2.pyi | 5 ++--- .../tensorflow/core/framework/kernel_def_pb2.pyi | 3 +-- .../tensorflow/core/framework/log_memory_pb2.pyi | 3 +-- stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi | 5 ++--- .../tensorflow/core/framework/node_def_pb2.pyi | 3 +-- .../tensorflow/tensorflow/core/framework/op_def_pb2.pyi | 3 +-- .../core/framework/optimized_function_graph_pb2.pyi | 3 +-- .../tensorflow/core/framework/reader_base_pb2.pyi | 3 +-- .../tensorflow/core/framework/resource_handle_pb2.pyi | 3 +-- .../tensorflow/core/framework/step_stats_pb2.pyi | 3 +-- .../tensorflow/tensorflow/core/framework/summary_pb2.pyi | 9 +++++---- .../tensorflow/core/framework/tensor_description_pb2.pyi | 3 +-- .../tensorflow/tensorflow/core/framework/tensor_pb2.pyi | 3 +-- .../tensorflow/core/framework/tensor_shape_pb2.pyi | 3 +-- .../tensorflow/core/framework/tensor_slice_pb2.pyi | 3 +-- stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi | 5 ++--- .../tensorflow/core/framework/variable_pb2.pyi | 5 ++--- .../tensorflow/core/framework/versions_pb2.pyi | 3 +-- .../tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi | 3 +-- .../core/protobuf/composite_tensor_variant_pb2.pyi | 3 +-- stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi | 5 ++--- .../tensorflow/core/protobuf/control_flow_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/coordination_config_pb2.pyi | 3 +-- .../core/protobuf/core_platform_payloads_pb2.pyi | 5 ++--- .../tensorflow/core/protobuf/data_service_pb2.pyi | 5 ++--- .../tensorflow/core/protobuf/debug_event_pb2.pyi | 5 ++--- stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/device_filters_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/device_properties_pb2.pyi | 3 +-- .../core/protobuf/distributed_runtime_payloads_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/error_codes_pb2.pyi | 2 +- .../tensorflow/core/protobuf/fingerprint_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/graph_debug_info_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/meta_graph_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/named_tensor_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/queue_runner_pb2.pyi | 3 +-- .../core/protobuf/remote_tensor_handle_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/rewriter_config_pb2.pyi | 5 ++--- .../tensorflow/core/protobuf/rpc_options_pb2.pyi | 4 +++- .../tensorflow/core/protobuf/saved_model_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/saved_object_graph_pb2.pyi | 5 ++--- stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi | 5 ++--- .../tensorflow/core/protobuf/service_config_pb2.pyi | 3 +-- .../tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi | 3 +-- stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi | 5 ++--- .../tensorflow/core/protobuf/tensor_bundle_pb2.pyi | 5 ++--- .../tensorflow/core/protobuf/tensorflow_server_pb2.pyi | 3 +-- .../core/protobuf/tpu/compilation_result_pb2.pyi | 5 ++--- .../tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi | 3 +-- .../core/protobuf/tpu/optimization_parameters_pb2.pyi | 5 ++--- .../tensorflow/core/protobuf/tpu/topology_pb2.pyi | 5 ++--- .../protobuf/tpu/tpu_embedding_configuration_pb2.pyi | 5 ++--- .../core/protobuf/trackable_object_graph_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/transport_options_pb2.pyi | 3 +-- .../tensorflow/core/protobuf/verifier_config_pb2.pyi | 5 ++--- stubs/tensorflow/tensorflow/core/util/event_pb2.pyi | 5 ++--- .../tensorflow/core/util/memmapped_file_system_pb2.pyi | 3 +-- .../tensorflow/core/util/saved_tensor_slice_pb2.pyi | 3 +-- stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi | 2 +- .../python/keras/protobuf/projector_config_pb2.pyi | 3 +-- .../python/keras/protobuf/saved_metadata_pb2.pyi | 3 +-- .../tensorflow/python/keras/protobuf/versions_pb2.pyi | 3 +-- .../tensorflow/tsl/protobuf/autotuning_pb2.pyi | 5 ++--- .../tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi | 3 +-- .../tensorflow/tsl/protobuf/coordination_config_pb2.pyi | 3 +-- .../tensorflow/tsl/protobuf/coordination_service_pb2.pyi | 5 ++--- .../tsl/protobuf/distributed_runtime_payloads_pb2.pyi | 3 +-- stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi | 5 ++--- .../tensorflow/tsl/protobuf/error_codes_pb2.pyi | 5 ++--- .../tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi | 3 +-- .../tensorflow/tsl/protobuf/rpc_options_pb2.pyi | 3 +-- .../tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi | 5 ++--- 112 files changed, 161 insertions(+), 266 deletions(-) diff --git a/stubs/protobuf/google/protobuf/any_pb2.pyi b/stubs/protobuf/google/protobuf/any_pb2.pyi index 1a9040cd5cfc..398a9abadb2c 100644 --- a/stubs/protobuf/google/protobuf/any_pb2.pyi +++ b/stubs/protobuf/google/protobuf/any_pb2.pyi @@ -32,11 +32,10 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.internal.well_known_types import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/api_pb2.pyi b/stubs/protobuf/google/protobuf/api_pb2.pyi index f4365a0e4dff..4cedb0da9211 100644 --- a/stubs/protobuf/google/protobuf/api_pb2.pyi +++ b/stubs/protobuf/google/protobuf/api_pb2.pyi @@ -33,13 +33,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.source_context_pb2 import google.protobuf.type_pb2 +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi b/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi index 0c7ed03c2a00..a2e15b129f9c 100644 --- a/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi +++ b/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi @@ -19,14 +19,13 @@ flag "--${NAME}_out" is passed to protoc. """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.descriptor_pb2 import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/descriptor_pb2.pyi b/stubs/protobuf/google/protobuf/descriptor_pb2.pyi index 53257ff489d8..bda40e15e110 100644 --- a/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +++ b/stubs/protobuf/google/protobuf/descriptor_pb2.pyi @@ -11,13 +11,12 @@ without any other information (e.g. without reading its imports). """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/duration_pb2.pyi b/stubs/protobuf/google/protobuf/duration_pb2.pyi index 681097d80e34..d8f7931a71e7 100644 --- a/stubs/protobuf/google/protobuf/duration_pb2.pyi +++ b/stubs/protobuf/google/protobuf/duration_pb2.pyi @@ -32,11 +32,10 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.internal.well_known_types import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/empty_pb2.pyi b/stubs/protobuf/google/protobuf/empty_pb2.pyi index 2f1c614527bf..22ef26b7d1e7 100644 --- a/stubs/protobuf/google/protobuf/empty_pb2.pyi +++ b/stubs/protobuf/google/protobuf/empty_pb2.pyi @@ -31,10 +31,9 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/field_mask_pb2.pyi b/stubs/protobuf/google/protobuf/field_mask_pb2.pyi index 07012bab5bca..1721c1bc6234 100644 --- a/stubs/protobuf/google/protobuf/field_mask_pb2.pyi +++ b/stubs/protobuf/google/protobuf/field_mask_pb2.pyi @@ -33,12 +33,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.well_known_types import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/source_context_pb2.pyi b/stubs/protobuf/google/protobuf/source_context_pb2.pyi index e11d903038f6..cb4fb572eadc 100644 --- a/stubs/protobuf/google/protobuf/source_context_pb2.pyi +++ b/stubs/protobuf/google/protobuf/source_context_pb2.pyi @@ -32,10 +32,9 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/struct_pb2.pyi b/stubs/protobuf/google/protobuf/struct_pb2.pyi index b3716e5bab46..bf2771ec0d5d 100644 --- a/stubs/protobuf/google/protobuf/struct_pb2.pyi +++ b/stubs/protobuf/google/protobuf/struct_pb2.pyi @@ -33,14 +33,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.well_known_types import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/timestamp_pb2.pyi b/stubs/protobuf/google/protobuf/timestamp_pb2.pyi index f5bfbc594c92..b8f5b636e752 100644 --- a/stubs/protobuf/google/protobuf/timestamp_pb2.pyi +++ b/stubs/protobuf/google/protobuf/timestamp_pb2.pyi @@ -32,11 +32,10 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.internal.well_known_types import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/type_pb2.pyi b/stubs/protobuf/google/protobuf/type_pb2.pyi index dca4537bd447..c66cd631176f 100644 --- a/stubs/protobuf/google/protobuf/type_pb2.pyi +++ b/stubs/protobuf/google/protobuf/type_pb2.pyi @@ -33,15 +33,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ import builtins import collections.abc -import sys -import typing - import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.source_context_pb2 +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/protobuf/google/protobuf/wrappers_pb2.pyi b/stubs/protobuf/google/protobuf/wrappers_pb2.pyi index 9cc4a3e8fedb..201b9258a751 100644 --- a/stubs/protobuf/google/protobuf/wrappers_pb2.pyi +++ b/stubs/protobuf/google/protobuf/wrappers_pb2.pyi @@ -12,10 +12,9 @@ These wrappers have no meaningful use within a map or a oneof since individual entries of a map or fields of a oneof can already detect presence. """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi index cd8d993c12ae..36e5f70c985b 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi @@ -3,12 +3,11 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi index e9f840a88032..d53937df29b2 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi @@ -4,14 +4,13 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import s2clientprotocol.common_pb2 +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi index 39c19873b48c..5f605f93068f 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi @@ -4,14 +4,13 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import s2clientprotocol.common_pb2 +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi index 9839a004052d..dce11d14ba85 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi @@ -3,11 +3,10 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi index e954e46118e1..2077427a14b6 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi @@ -4,13 +4,12 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import s2clientprotocol.common_pb2 import s2clientprotocol.error_pb2 +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi index 3afb3e820a42..9a0c9aea4f47 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi @@ -4,14 +4,13 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import s2clientprotocol.common_pb2 +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi index c4ad8fee6be4..c3b879600e48 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi @@ -4,9 +4,6 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper @@ -20,6 +17,8 @@ import s2clientprotocol.raw_pb2 import s2clientprotocol.score_pb2 import s2clientprotocol.spatial_pb2 import s2clientprotocol.ui_pb2 +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi index 6ccd3359cc04..a1c5360f371f 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi @@ -3,12 +3,11 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi index d76fbf1f1331..5105e79a6db0 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi @@ -4,14 +4,13 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import s2clientprotocol.common_pb2 +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi b/stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi index c0499b585dfe..480c4960360b 100644 --- a/stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi +++ b/stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi @@ -4,13 +4,12 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/compiler/xla/autotune_results_pb2.pyi b/stubs/tensorflow/tensorflow/compiler/xla/autotune_results_pb2.pyi index 1f107829d73a..d90b18cd68c1 100644 --- a/stubs/tensorflow/tensorflow/compiler/xla/autotune_results_pb2.pyi +++ b/stubs/tensorflow/tensorflow/compiler/xla/autotune_results_pb2.pyi @@ -18,11 +18,10 @@ limitations under the License. """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.tsl.protobuf.autotuning_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi b/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi index d3454c8ba0b9..46fa77106238 100644 --- a/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi +++ b/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi @@ -16,14 +16,13 @@ protos as JSON, which includes the field names in the serialization. """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.compiler.xla.xla_data_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi b/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi index 39993f67771b..f39a6bd921d6 100644 --- a/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi +++ b/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi @@ -3,14 +3,13 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi b/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi index a283b93afb07..f4e34a285982 100644 --- a/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi +++ b/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi @@ -18,13 +18,12 @@ limitations under the License. """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi b/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi index 7b24d84e01e1..52e42c6a3fc2 100644 --- a/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file Protocol messages for describing the configuration of the ExampleParserOp.""" import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi b/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi index cd4bcd511a7e..4fb6132fdf08 100644 --- a/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi @@ -5,10 +5,9 @@ Protocol messages for describing input data Examples for machine learning model training or inference. """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys import tensorflow.core.example.feature_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi b/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi index 42bfb4d4f9f0..1739ce2aef40 100644 --- a/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi @@ -57,11 +57,10 @@ Example Features for a movie recommendation application: """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi index e1d5638202f1..b53507ce6064 100644 --- a/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi index b2f1a514a69e..6ca86a438448 100644 --- a/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi @@ -6,14 +6,13 @@ overrides for client language op code generators. """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.attr_value_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi index 11566fd7fb19..5e148bb273df 100644 --- a/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi index 1aa0b7a153a3..69f4580d5c6f 100644 --- a/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi index ff792ea47c46..5ab21cfac43b 100644 --- a/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi index d31d1d267f9e..651c02975047 100644 --- a/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi @@ -3,13 +3,12 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.model_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi index b2e987481ccf..432d6f4f57a5 100644 --- a/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi index 4b1dbd3d3ffa..116157d43832 100644 --- a/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi index 0c5e1e9d955a..b41f5f4da2fc 100644 --- a/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi @@ -4,13 +4,12 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi index 4f920a308aa4..266ceef3c17b 100644 --- a/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.attr_value_pb2 import tensorflow.core.framework.node_def_pb2 import tensorflow.core.framework.op_def_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi index 9ff82c9d8cff..e58eab70eafd 100644 --- a/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.function_pb2 import tensorflow.core.framework.node_def_pb2 import tensorflow.core.framework.versions_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi index 88b587cf2434..908dddd1fe8b 100644 --- a/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi @@ -4,14 +4,13 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.types_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi index 53c54aab27da..d3b04135d493 100644 --- a/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.attr_value_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi index d3c6f0dd8261..45e50508459a 100644 --- a/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys import tensorflow.core.framework.tensor_description_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi index 8c4fdf2af8e0..97cdf1f276b1 100644 --- a/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi @@ -4,13 +4,12 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi index 8e8b352b7837..e146faecf898 100644 --- a/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.attr_value_pb2 import tensorflow.core.framework.full_type_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi index 0e384331dd90..acee7309c540 100644 --- a/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.attr_value_pb2 import tensorflow.core.framework.full_type_pb2 import tensorflow.core.framework.resource_handle_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi index 8709c3987750..a9097c746f44 100644 --- a/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.graph_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi index 3f395b4570c0..2e06dfa7766a 100644 --- a/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi index d92b2f765265..cda284bf2e89 100644 --- a/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi index 8261e5730ea2..23f790f0d378 100644 --- a/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.allocation_description_pb2 import tensorflow.core.framework.tensor_description_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi index 609abbe28650..a6ffc8512dfc 100644 --- a/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi @@ -4,21 +4,22 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.tsl.protobuf.histogram_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions else: import typing_extensions -from tensorflow.tsl.protobuf.histogram_pb2 import HistogramProto as HistogramProto +from tensorflow.tsl.protobuf.histogram_pb2 import ( + HistogramProto as HistogramProto, +) DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi index f6c348b8a14b..3fadbcb2475a 100644 --- a/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys import tensorflow.core.framework.allocation_description_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi index 393b94d909f6..43f84a36134f 100644 --- a/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.resource_handle_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi index 37a6a5279201..cf0219ed9324 100644 --- a/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file Protocol buffer representing the shape of tensors.""" import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi index cfc3e361d699..17391655c559 100644 --- a/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file Protocol buffer representing slices of a tensor""" import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi index 9f4d4fea804f..48bc3ca55ec2 100644 --- a/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi @@ -3,12 +3,11 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi index 2c7796d2f573..4dbea275cbf7 100644 --- a/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi @@ -4,13 +4,12 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi index 4df61f398301..571754ba5f3f 100644 --- a/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi index e9f986e3a24e..a53a7d5f0415 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi @@ -18,11 +18,10 @@ limitations under the License. """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi index eb143db57da9..3cdfcd186540 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys import tensorflow.core.protobuf.struct_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi index d45828cd305c..9a145bf28a70 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi @@ -4,13 +4,11 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.cost_graph_pb2 import tensorflow.core.framework.graph_pb2 import tensorflow.core.framework.step_stats_pb2 @@ -19,6 +17,7 @@ import tensorflow.core.protobuf.debug_pb2 import tensorflow.core.protobuf.rewriter_config_pb2 import tensorflow.tsl.protobuf.coordination_config_pb2 import tensorflow.tsl.protobuf.rpc_options_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi index cb0fd3576554..47f05d32b600 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/coordination_config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/coordination_config_pb2.pyi index fcd757622079..43efe80f355f 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/coordination_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/coordination_config_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi index f06c008c37ba..496d0096f81a 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi @@ -3,12 +3,11 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi index 151a3d18ec47..6924223b44ab 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi @@ -3,12 +3,11 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi index 89570d7cef77..fec65984da15 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi @@ -4,15 +4,14 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.protobuf.graph_debug_info_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi index 106a26b01072..f7779853a347 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi index e26f3a083842..d00378cd471c 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi @@ -18,11 +18,10 @@ limitations under the License. """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi index b3ec2632a7a8..366f318856ae 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi @@ -18,11 +18,10 @@ limitations under the License. """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/distributed_runtime_payloads_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/distributed_runtime_payloads_pb2.pyi index ed8dd9ae681e..3f2acfcf24bc 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/distributed_runtime_payloads_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/distributed_runtime_payloads_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi index 093797947d01..447469dda71b 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi @@ -11,6 +11,7 @@ from tensorflow.tsl.protobuf.error_codes_pb2 import ( ABORTED as ABORTED, ALREADY_EXISTS as ALREADY_EXISTS, CANCELLED as CANCELLED, + Code as Code, DATA_LOSS as DATA_LOSS, DEADLINE_EXCEEDED as DEADLINE_EXCEEDED, DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_ as DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_, @@ -26,7 +27,6 @@ from tensorflow.tsl.protobuf.error_codes_pb2 import ( UNAVAILABLE as UNAVAILABLE, UNIMPLEMENTED as UNIMPLEMENTED, UNKNOWN as UNKNOWN, - Code as Code, ) DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi index be397855b80c..bda6e036b957 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys import tensorflow.core.framework.versions_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/graph_debug_info_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/graph_debug_info_pb2.pyi index ae0527450348..e2298201ddb1 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/graph_debug_info_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/graph_debug_info_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi index 0506fc7a8b1a..18fd35693c00 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi @@ -4,12 +4,11 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.graph_pb2 import tensorflow.core.framework.op_def_pb2 import tensorflow.core.framework.tensor_shape_pb2 diff --git a/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi index b45f134db7f6..419e650c8ccb 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys import tensorflow.core.framework.tensor_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi index 59d932074fc1..332144151ce1 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.tsl.protobuf.error_codes_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi index 55607e50b4a8..a2bff6d62edd 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi index 9bf638aa42bd..9338ba89180c 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi @@ -4,15 +4,14 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.attr_value_pb2 import tensorflow.core.protobuf.verifier_config_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi index f81919a4fc42..462a1076bd8e 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi @@ -3,6 +3,8 @@ isort:skip_file """ import google.protobuf.descriptor -from tensorflow.tsl.protobuf.rpc_options_pb2 import RPCOptions as RPCOptions +from tensorflow.tsl.protobuf.rpc_options_pb2 import ( + RPCOptions as RPCOptions, +) DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi index 7c32f95070fd..0c412101c5aa 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.protobuf.meta_graph_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi index c74ca7cedfde..15adf4ec318d 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi @@ -4,20 +4,19 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 import tensorflow.core.framework.variable_pb2 import tensorflow.core.framework.versions_pb2 import tensorflow.core.protobuf.struct_pb2 import tensorflow.core.protobuf.trackable_object_graph_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi index a5acf0bec8f1..7f91d63a9162 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi @@ -3,12 +3,11 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi index 99465a6b94ef..d8db4cbe077b 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.protobuf.data_service_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi index 7db51bb8518b..f9198cc248de 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 diff --git a/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi index 9321d8378630..e8341d120292 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi @@ -4,16 +4,15 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.types_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi index a55ef36b3c49..cbb1e71ffaea 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi @@ -4,17 +4,16 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.tensor_slice_pb2 import tensorflow.core.framework.types_pb2 import tensorflow.core.framework.versions_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi index 781baf8375ad..624e4a471043 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi @@ -17,10 +17,9 @@ limitations under the License. ============================================================================== """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys import tensorflow.core.protobuf.cluster_pb2 import tensorflow.core.protobuf.config_pb2 import tensorflow.core.protobuf.device_filters_pb2 diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi index 639d1049656b..a4f60a5be39f 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi @@ -4,15 +4,14 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.compiler.xla.service.hlo_pb2 import tensorflow.tsl.protobuf.error_codes_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi index b296008931f0..5b1d1c7f4b12 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi index c9b6adebc541..2bfa1b94e563 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi @@ -3,14 +3,13 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.wrappers_pb2 +import sys import tensorflow.compiler.xla.service.hlo_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi index be5e58a28d5d..2c88cfeab08f 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi @@ -4,13 +4,12 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi index 2568ba183172..bc80fce661a2 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi @@ -4,14 +4,13 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.protobuf.tpu.optimization_parameters_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi index 0c65575824a4..1c944e6abd63 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi @@ -4,12 +4,11 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.wrappers_pb2 +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi index 53c27a86ecc0..41c87481905f 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi b/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi index 4be67334c55f..4f1ce5c9cc84 100644 --- a/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi @@ -3,12 +3,11 @@ isort:skip_file """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi b/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi index 7cfa8385cd48..113f2cf5c80d 100644 --- a/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi @@ -4,14 +4,13 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.core.framework.summary_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi b/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi index 0da3ecbf492a..f04d62e218ea 100644 --- a/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi @@ -18,11 +18,10 @@ limitations under the License. """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi b/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi index 597ddc5fa4bc..370e8043f1aa 100644 --- a/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi @@ -17,11 +17,10 @@ debugging and manual examination. """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.core.framework.tensor_pb2 import tensorflow.core.framework.tensor_shape_pb2 import tensorflow.core.framework.tensor_slice_pb2 diff --git a/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi b/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi index c58568965d3c..264cfa51e395 100644 --- a/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi @@ -8,8 +8,8 @@ from tensorflow.tsl.protobuf.test_log_pb2 import ( BenchmarkEntries as BenchmarkEntries, BenchmarkEntry as BenchmarkEntry, BuildConfiguration as BuildConfiguration, - CommitId as CommitId, CPUInfo as CPUInfo, + CommitId as CommitId, EntryValue as EntryValue, GPUInfo as GPUInfo, MachineConfiguration as MachineConfiguration, diff --git a/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi b/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi index dadeda2aa5e5..6383058a7c9e 100644 --- a/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi @@ -7,11 +7,10 @@ https://github.com/tensorflow/tensorboard/blob/master/tensorboard/plugins/projec """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi b/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi index f42202cf8ff3..7c793df6b426 100644 --- a/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi +++ b/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file Protobuf containing the metadata for each Keras object saved in a SavedModel.""" import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import tensorflow.python.keras.protobuf.versions_pb2 if sys.version_info >= (3, 8): diff --git a/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi b/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi index dd5c21cbcc4c..94240448ecca 100644 --- a/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi +++ b/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/autotuning_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/autotuning_pb2.pyi index 38ee640d0923..23fd55c3454f 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/autotuning_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/autotuning_pb2.pyi @@ -9,16 +9,15 @@ tremendous statistical, testing, and debugging value. """ import builtins import collections.abc -import sys -import typing - import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import tensorflow.tsl.protobuf.dnn_pb2 +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi index a24cd0932392..413a1bd35dc2 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/bfc_memory_map_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi index fcd757622079..43efe80f355f 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi index 7165c7199683..82a36f2e3379 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi @@ -4,14 +4,13 @@ isort:skip_file """ import builtins import collections.abc -import sys -import typing - import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi index ed8dd9ae681e..3f2acfcf24bc 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi index 34faf347349c..c01a06d3e3b4 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi @@ -4,14 +4,13 @@ isort:skip_file LINT: LEGACY_NAMES""" import builtins import collections.abc -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.wrappers_pb2 +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi index 0aa45efaf8cc..0ac76cd89e9a 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi @@ -5,11 +5,10 @@ TODO(b/247876220): Change package and java_package once we figure out how to migrate. """ import builtins -import sys -import typing - import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi index 69ee0c2277e1..71beb87eeccb 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi @@ -4,11 +4,10 @@ isort:skip_file """ import builtins import collections.abc -import sys - import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi index 62370eb9cc1d..0a54a3807d5b 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi @@ -3,10 +3,9 @@ isort:skip_file """ import builtins -import sys - import google.protobuf.descriptor import google.protobuf.message +import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/stubs/tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi b/stubs/tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi index 48b4f7a5b43c..a04bdc198824 100644 --- a/stubs/tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi +++ b/stubs/tensorflow/tensorflow/tsl/protobuf/test_log_pb2.pyi @@ -4,15 +4,14 @@ isort:skip_file Protocol messages for describing the results of benchmarks and unit tests.""" import builtins import collections.abc -import sys -import typing - import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.wrappers_pb2 +import sys +import typing if sys.version_info >= (3, 10): import typing as typing_extensions