celery-types icon indicating copy to clipboard operation
celery-types copied to clipboard

Group is missing tasks

Open Mulugruntz opened this issue 1 year ago • 0 comments

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).

Mulugruntz avatar Apr 02 '23 16:04 Mulugruntz