Skip to content

Commit

Permalink
Sort imports with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Jun 28, 2024
1 parent 6f3ec13 commit e6ec82e
Show file tree
Hide file tree
Showing 56 changed files with 160 additions and 73 deletions.
4 changes: 3 additions & 1 deletion temporalio/api/batch/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ THE SOFTWARE.
"""

import builtins
import sys

import google.protobuf.descriptor
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys

import temporalio.api.common.v1.message_pb2
import temporalio.api.enums.v1.batch_operation_pb2
import temporalio.api.enums.v1.reset_pb2
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/cluster/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ THE SOFTWARE.

import builtins
import collections.abc
import sys

import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys

import temporalio.api.enums.v1.cluster_pb2
import temporalio.api.enums.v1.common_pb2
import temporalio.api.version.v1.message_pb2
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/command/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ THE SOFTWARE.

import builtins
import collections.abc
import sys

import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.message
import sys

import temporalio.api.common.v1.message_pb2
import temporalio.api.enums.v1.command_type_pb2
import temporalio.api.enums.v1.workflow_pb2
Expand Down
3 changes: 2 additions & 1 deletion temporalio/api/common/v1/grpc_status_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,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

if sys.version_info >= (3, 8):
import typing as typing_extensions
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/common/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ THE SOFTWARE.

import builtins
import collections.abc
import sys

import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.empty_pb2
import google.protobuf.internal.containers
import google.protobuf.message
import sys

import temporalio.api.enums.v1.common_pb2
import temporalio.api.enums.v1.reset_pb2

Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/batch_operation_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/command_type_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/common_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/event_type_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/failed_cause_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/namespace_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/query_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/reset_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/schedule_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/task_queue_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/update_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
5 changes: 3 additions & 2 deletions temporalio/api/enums/v1/workflow_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ THE SOFTWARE.
"""

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:
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/errordetails/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ and extend standard Error Details defined in https://github.com/googleapis/googl

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 temporalio.api.common.v1.message_pb2
import temporalio.api.enums.v1.failed_cause_pb2
import temporalio.api.enums.v1.namespace_pb2
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/export/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ THE SOFTWARE.

import builtins
import collections.abc
import sys

import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import sys

import temporalio.api.history.v1.message_pb2

if sys.version_info >= (3, 8):
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/failure/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ THE SOFTWARE.
"""

import builtins
import sys

import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.message
import sys

import temporalio.api.common.v1.message_pb2
import temporalio.api.enums.v1.workflow_pb2

Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/filter/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ THE SOFTWARE.
"""

import builtins
import sys

import google.protobuf.descriptor
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys

import temporalio.api.enums.v1.workflow_pb2

if sys.version_info >= (3, 8):
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/history/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ THE SOFTWARE.

import builtins
import collections.abc
import sys

import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys

import temporalio.api.common.v1.message_pb2
import temporalio.api.enums.v1.event_type_pb2
import temporalio.api.enums.v1.failed_cause_pb2
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/interaction/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ THE SOFTWARE.
"""

import builtins
import sys

import google.protobuf.descriptor
import google.protobuf.message
import sys

import temporalio.api.common.v1.message_pb2
import temporalio.api.enums.v1.interaction_type_pb2
import temporalio.api.failure.v1.message_pb2
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/namespace/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ THE SOFTWARE.

import builtins
import collections.abc
import sys

import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys

import temporalio.api.enums.v1.namespace_pb2

if sys.version_info >= (3, 8):
Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/nexus/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ THE SOFTWARE.

import builtins
import collections.abc
import sys

import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys

import temporalio.api.common.v1.message_pb2
import temporalio.api.sdk.v1.user_metadata_pb2

Expand Down
4 changes: 3 additions & 1 deletion temporalio/api/operatorservice/v1/request_response_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ THE SOFTWARE.

import builtins
import collections.abc
import sys

import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.message
import sys

import temporalio.api.enums.v1.common_pb2
import temporalio.api.nexus.v1.message_pb2

Expand Down
2 changes: 2 additions & 0 deletions temporalio/api/operatorservice/v1/service_pb2_grpc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ THE SOFTWARE.
"""

import abc

import grpc

import temporalio.api.operatorservice.v1.request_response_pb2

class OperatorServiceStub:
Expand Down
Loading

0 comments on commit e6ec82e

Please sign in to comment.