Skip to content

Commit

Permalink
doc: Add a code doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
proxi committed Oct 7, 2024
1 parent 45dbc00 commit bee935d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sqs_workers/async_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@


class AsyncTaskDelayArgs(TypedDict):
"""
Extra arguments accepted by `AsyncTask.delay`. This mapping can be used with `Unpack` to
improve typing of task function when `delay` is used.
`def task(..., **_delay_args: Unpack[AsyncTaskDelayArgs]) -> None: ...`
"""

_content_type: NotRequired[str]
_delay_seconds: NotRequired[float]
_deduplication_id: NotRequired[str]
_group_id: NotRequired[str]
Expand Down

0 comments on commit bee935d

Please sign in to comment.