Fix invoke regression (#8950)

* Fix `invoke` regression
This commit is contained in:
Alex Waygood
2022-10-21 18:04:22 +01:00
committed by GitHub
parent 327ae91627
commit dc7fdc6f5d
2 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
# pyright: reportUnnecessaryTypeIgnoreComment=true
from invoke import Context, task
# ===========================================
# This snippet is a regression test for #8936
# ===========================================
@task
def docker_build(context: Context) -> None:
pass
@task(docker_build)
def docker_push(context: Context) -> None:
pass