Skip to content

Commit

Permalink
Use older Union typing for Python 3.8 and 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jhthompson committed Jun 18, 2024
1 parent 0e54858 commit b71b1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_tasks/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def task(
priority: int = 0,
queue_name: str = DEFAULT_QUEUE_NAME,
backend: str = DEFAULT_TASK_BACKEND_ALIAS,
) -> Task[P, T] | Callable[[Callable[P, T]], Task[P, T]]:
) -> Union[Task[P, T], Callable[[Callable[P, T]], Task[P, T]]]:
"""
A decorator used to create a task.
"""
Expand Down

0 comments on commit b71b1e1

Please sign in to comment.