From e87b24f948e1bb6acaba81cefac426d58026ea0e Mon Sep 17 00:00:00 2001 From: hatchet-temporary Date: Tue, 17 Dec 2024 17:51:02 -0500 Subject: [PATCH] fix: fix linting issues on local --- hatchet_sdk/clients/admin.py | 2 +- hatchet_sdk/hatchet.py | 2 +- hatchet_sdk/workflow.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hatchet_sdk/clients/admin.py b/hatchet_sdk/clients/admin.py index 772adc09..02fdeb56 100644 --- a/hatchet_sdk/clients/admin.py +++ b/hatchet_sdk/clients/admin.py @@ -425,7 +425,7 @@ def put_rate_limit( self, key: str, limit: int, - duration: Union[RateLimitDuration, str] = RateLimitDuration.SECOND, + duration: Union[RateLimitDuration.Value, str] = RateLimitDuration.SECOND, ): try: self.client.PutRateLimit( diff --git a/hatchet_sdk/hatchet.py b/hatchet_sdk/hatchet.py index df7cf7eb..7a869b8a 100644 --- a/hatchet_sdk/hatchet.py +++ b/hatchet_sdk/hatchet.py @@ -45,7 +45,7 @@ def workflow( version: str = "", timeout: str = "60m", schedule_timeout: str = "5m", - sticky: Union[StickyStrategy, None] = None, + sticky: Union[StickyStrategy.Value, None] = None, # type: ignore[name-defined] default_priority: int | None = None, concurrency: ConcurrencyExpression | None = None, input_validator: Type[T] | None = None, diff --git a/hatchet_sdk/workflow.py b/hatchet_sdk/workflow.py index 4a1e045c..9c5cef90 100644 --- a/hatchet_sdk/workflow.py +++ b/hatchet_sdk/workflow.py @@ -93,7 +93,7 @@ def get_create_opts(self, namespace: str) -> Any: ... version: str timeout: str schedule_timeout: str - sticky: Union[StickyStrategy, None] + sticky: Union[StickyStrategy.Value, None] # type: ignore[name-defined] default_priority: int | None concurrency_expression: ConcurrencyExpression | None input_validator: Type[BaseModel] | None