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

Group is missing tasks #112

Open
Mulugruntz opened this issue Apr 2, 2023 · 0 comments
Open

Group is missing tasks #112

Mulugruntz opened this issue Apr 2, 2023 · 0 comments

Comments

@Mulugruntz
Copy link
Contributor

I noticed that canvas.group is using self.tasks a bit everywhere, but it's never declared in any __init__ (I might have missed it though).
And the stubs don't declare it either. That has the effect of triggering mypy when doing mygroup.tasks.

error: "group" has no attribute "tasks"  [attr-defined]

I'm not sure if this is supposed to be a stub-only fix (I could do it) or if it highlights a deeper potential bug, where we could have branches that would raise AttributeError (I'll need some help, and a ticket would be opened on celery repo).

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

1 participant