Skip to content

Commit

Permalink
fix: couple more union types
Browse files Browse the repository at this point in the history
  • Loading branch information
hatchet-temporary committed Dec 17, 2024
1 parent 6ab36cf commit 1041676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hatchet_sdk/clients/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def put_rate_limit(
self,
key: str,
limit: int,
duration: RateLimitDuration | str = RateLimitDuration.SECOND,
duration: Union[RateLimitDuration, str] = RateLimitDuration.SECOND,
):
try:
self.client.PutRateLimit(
Expand Down
4 changes: 2 additions & 2 deletions hatchet_sdk/hatchet.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
import logging
from typing import Any, Callable, Optional, Type, TypeVar, cast, get_type_hints
from typing import Any, Callable, Optional, Type, TypeVar, Union

from pydantic import BaseModel
from typing_extensions import deprecated
Expand Down Expand Up @@ -45,7 +45,7 @@ def workflow(
version: str = "",
timeout: str = "60m",
schedule_timeout: str = "5m",
sticky: StickyStrategy | None = None,
sticky: Union[StickyStrategy, None] = None,
default_priority: int | None = None,
concurrency: ConcurrencyExpression | None = None,
input_validator: Type[T] | None = None,
Expand Down

0 comments on commit 1041676

Please sign in to comment.