Mark pre/post tasks in invoke tasks as iterable (#7531)

This commit is contained in:
kasium
2022-03-22 16:06:22 +01:00
committed by GitHub
parent 108c3ab710
commit dd1265c0e6

View File

@@ -23,8 +23,8 @@ class Task:
incrementable: Iterable[str]
auto_shortflags: bool
help: dict[str, str]
pre: list[Task]
post: list[Task]
pre: Iterable[Task]
post: Iterable[Task]
times_called: int
autoprint: bool
def __init__(
@@ -37,8 +37,8 @@ class Task:
default: bool = ...,
auto_shortflags: bool = ...,
help: dict[str, str] | None = ...,
pre: list[Task] | None = ...,
post: list[Task] | None = ...,
pre: Iterable[Task] | None = ...,
post: Iterable[Task] | None = ...,
autoprint: bool = ...,
iterable: Iterable[str] | None = ...,
incrementable: Iterable[str] | None = ...,