Open
Description
from invoke.tasks import task
from invoke.collection import Collection
@task
def foo(ctx):
pass
ns = Collection()
ns.add_task(foo)
leads to an mypy error:
error: Argument 1 to "add_task" of "Collection" has incompatible type "Callable[..., Any]"; expected "Task[Any]" [arg-type]
ns.add_task(foo)
Metadata
Metadata
Assignees
Labels
No labels