Stdlib: fix three trivial issues with parameter defaults (#9618)

This commit is contained in:
Alex Waygood
2023-01-30 05:40:56 +00:00
committed by GitHub
parent 398bd90b8e
commit 6011cac0cc
5 changed files with 5 additions and 5 deletions

View File

@@ -63,9 +63,11 @@ def find( # type: ignore[misc]
) -> str | None: ...
@overload
def find(
domain: str, localedir: StrPath | None = None, languages: Iterable[str] | None = None, all: Literal[True] = ...
domain: str, localedir: StrPath | None = None, languages: Iterable[str] | None = None, *, all: Literal[True]
) -> list[str]: ...
@overload
def find(domain: str, localedir: StrPath | None, languages: Iterable[str] | None, all: Literal[True]) -> list[str]: ...
@overload
def find(domain: str, localedir: StrPath | None = None, languages: Iterable[str] | None = None, all: bool = False) -> Any: ...
_NullTranslationsT = TypeVar("_NullTranslationsT", bound=NullTranslations)