-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make more params in task()
optional?
#51
Labels
bug
Something isn't working
Comments
cktang88
changed the title
Make more params in
Make more params in Dec 3, 2021
task()
nullable?task()
optional?
Actually, all params for task are optional, it could even be used as I think i should be able to create PR for this. |
last-partizan
added a commit
to last-partizan/celery-types
that referenced
this issue
Dec 31, 2021
I created PR for task without arguments. But, i did nothing about optional params. @cktang88 what are your use-case for this? I think, current typing is correct. For example acks_late is bool, with some default value. All kwargs are optional and can be omitted. |
kodiakhq bot
pushed a commit
that referenced
this issue
Dec 31, 2021
This add overload for following case: ``` @app.task def task_func(): ... ``` Refs #51
Ditto for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe most of the args in
task()
should be optional, eg. all the retry params, andacks_late
, among others?celery-types/celery-stubs/app/base.pyi
Line 110 in 7165479
The text was updated successfully, but these errors were encountered: