From 9ef68f6c67f01496baafb8fcf3d4783e59a46688 Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Fri, 2 Aug 2024 10:19:32 +0500 Subject: [PATCH] reformat wit black 24 --- pyzeebe/channel/channel_options.py | 1 + pyzeebe/worker/task_router.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyzeebe/channel/channel_options.py b/pyzeebe/channel/channel_options.py index 62a7ea95..217d2fc6 100644 --- a/pyzeebe/channel/channel_options.py +++ b/pyzeebe/channel/channel_options.py @@ -7,6 +7,7 @@ https://docs.camunda.io/docs/product-manuals/zeebe/deployment-guide/operations/setting-up-a-cluster/#keep-alive-intervals """ + from typing import Any, Dict, Optional, Tuple GRPC_CHANNEL_OPTIONS = {"grpc.keepalive_time_ms": 45_000} diff --git a/pyzeebe/worker/task_router.py b/pyzeebe/worker/task_router.py index 39dd9473..dd85b1ca 100644 --- a/pyzeebe/worker/task_router.py +++ b/pyzeebe/worker/task_router.py @@ -61,8 +61,7 @@ def task( after: Optional[List[TaskDecorator]] = None, *, single_value: Literal[False] = False, - ) -> Callable[[Function[P, RD]], Function[P, RD]]: - ... + ) -> Callable[[Function[P, RD]], Function[P, RD]]: ... @overload def task( @@ -78,8 +77,7 @@ def task( *, single_value: Literal[True], variable_name: str, - ) -> Callable[[Function[P, R]], Function[P, R]]: - ... + ) -> Callable[[Function[P, R]], Function[P, R]]: ... def task( self,