You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
I noticed that
canvas.group
is usingself.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
.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 oncelery
repo).The text was updated successfully, but these errors were encountered: