mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Mark pre/post tasks in invoke tasks as iterable (#7531)
This commit is contained in:
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user