Skip to content

Group is missing tasksΒ #112

@Mulugruntz

Description

@Mulugruntz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions