Skip to content
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

mypy: "<some_param> to "delay" of "Task" has incompatible type <some_type>; expected <nothing> #129

Open
dashdanw opened this issue Jun 30, 2023 · 2 comments

Comments

@dashdanw
Copy link

Updating from 0.15 to 0.18 (via a bandit bump to 1.7.5) seems to have broken mypy's ability to distinguish task parameters correctly. In lieu of rolling back my celery-types version I was curious if anyone knows a workaround or if I am maybe doing something incorrectly?

@tcrasset
Copy link
Contributor

tcrasset commented Jul 7, 2023

@dashdanw Were you able to find a workaround? I'm having the same issue.

@tcrasset
Copy link
Contributor

tcrasset commented Jul 7, 2023

I found some inconsistencies in the required python version (see here). Notably, an overload of a task declaration was using Concatenate which is only available since Python version 3.10.

After installing a new python version, I'm now getting a different kind of error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants