Skip to content

Commit

Permalink
fix: Add overload for task without args (#54)
Browse files Browse the repository at this point in the history
This add overload for following case:

```
@app.task
def task_func():
     ...
```

Refs #51
  • Loading branch information
last-partizan authored Dec 31, 2021
1 parent a0ca7bf commit a5ece4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions celery-stubs/app/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ class Celery:
def start(self, argv: Optional[List[str]] = ...) -> NoReturn: ...
def worker_main(self, argv: Optional[List[str]] = ...) -> NoReturn: ...
@overload
def task(self, fun: Callable[..., Any]) -> CeleryTask: ...
@overload
def task(
self,
*,
Expand Down

0 comments on commit a5ece4a

Please sign in to comment.