Skip to content

Commit

Permalink
chore: Fix types.
Browse files Browse the repository at this point in the history
  • Loading branch information
proxi committed Oct 24, 2023
1 parent 797d17b commit f9eaf30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sqs_workers/async_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Generator,
Generic,
NoReturn,
Optional,
TypeVar,
)
from typing_extensions import ParamSpec
Expand Down Expand Up @@ -61,7 +62,7 @@ def batch(self) -> Generator[None, None, None]:
with self.queue.add_batch():
yield

def delay(self, *args: P.args, **kwargs: P.kwargs) -> str | None:
def delay(self, *args: P.args, **kwargs: P.kwargs) -> Optional[str]:
"""
Run the task asynchronously.
"""
Expand Down
2 changes: 1 addition & 1 deletion sqs_workers/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def add_raw_job(
delay_seconds,
deduplication_id,
group_id: Optional[str],
) -> str | None:
) -> Optional[str]:
"""
Low-level function to put message to the queue
"""
Expand Down

0 comments on commit f9eaf30

Please sign in to comment.