Replace Any with Incomplete in many places (#9558)

This commit is contained in:
Alex Waygood
2023-01-18 08:48:16 +00:00
committed by GitHub
parent ddfaca3200
commit 4fea314594
460 changed files with 3779 additions and 2909 deletions

View File

@@ -1,3 +1,4 @@
from _typeshed import Incomplete
from collections.abc import Iterable
from typing import Any
from typing_extensions import TypeAlias
@@ -8,5 +9,5 @@ _Argv: TypeAlias = Iterable[str] | str
def printable_usage(doc: str) -> str: ...
def docopt(
doc: str, argv: _Argv | None = ..., help: bool = ..., version: Any | None = ..., options_first: bool = ...
doc: str, argv: _Argv | None = ..., help: bool = ..., version: Incomplete | None = ..., options_first: bool = ...
) -> dict[str, Any]: ... # Really should be dict[str, str | bool]