Skip to content

Commit

Permalink
chore: Apple formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
proxi committed Jan 14, 2025
1 parent 2fd20a3 commit c521fd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions sqs_workers/shutdown_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@


class ShutdownPolicy(Protocol):
def update_state(self, batch_processing_result) -> None: ...
def update_state(self, batch_processing_result) -> None:
...

def need_shutdown(self) -> bool: ...
def need_shutdown(self) -> bool:
...


class NeverShutdown:
Expand Down
6 changes: 4 additions & 2 deletions sqs_workers/sqs_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def queue(
queue_maker: Union[Type[JobQueue], Callable[..., JobQueue]] = JobQueue,
batching_policy: BatchingConfiguration = NoBatching(),
backoff_policy: Optional["BackoffPolicy"] = None,
) -> JobQueue: ...
) -> JobQueue:
...

@overload
def queue(
Expand All @@ -89,7 +90,8 @@ def queue(
queue_maker: Union[Type[AnyQueueT], Callable[..., AnyQueueT]],
batching_policy: BatchingConfiguration = NoBatching(),
backoff_policy: Optional["BackoffPolicy"] = None,
) -> AnyQueueT: ...
) -> AnyQueueT:
...

def queue(
self,
Expand Down

0 comments on commit c521fd6

Please sign in to comment.