From dd1265c0e639c8231e8c9a66ddb116c30c8e07c2 Mon Sep 17 00:00:00 2001 From: kasium <15907922+kasium@users.noreply.github.com> Date: Tue, 22 Mar 2022 16:06:22 +0100 Subject: [PATCH] Mark pre/post tasks in invoke tasks as iterable (#7531) --- stubs/invoke/invoke/tasks.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = ...,