diff --git a/stubs/invoke/invoke/tasks.pyi b/stubs/invoke/invoke/tasks.pyi index afe43e3f9..2bf06aaf5 100644 --- a/stubs/invoke/invoke/tasks.pyi +++ b/stubs/invoke/invoke/tasks.pyi @@ -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 = ...,