invoke: Fix unconstrained TypeVar (#7943)

Part of #7928 

f34c6c9413/invoke/tasks.py (L328)
This commit is contained in:
Jelle Zijlstra
2022-05-24 22:48:49 -07:00
committed by GitHub
parent bb119544d8
commit 070e6c2a2d

View File

@@ -72,7 +72,23 @@ def task(
autoprint: bool = ...,
iterable: Iterable[str] | None = ...,
incrementable: Iterable[str] | None = ...,
klass: type[_TaskT] = ...,
) -> Callable[[Callable[..., Any]], Task]: ...
@overload
def task(
*args: Task,
name: str | None = ...,
aliases: tuple[str, ...] = ...,
positional: Iterable[str] | None = ...,
optional: Iterable[str] = ...,
default: bool = ...,
auto_shortflags: bool = ...,
help: dict[str, str] | None = ...,
pre: list[Task] | None = ...,
post: list[Task] | None = ...,
autoprint: bool = ...,
iterable: Iterable[str] | None = ...,
incrementable: Iterable[str] | None = ...,
klass: type[_TaskT],
) -> Callable[[Callable[..., Any]], _TaskT]: ...
class Call: