mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Stdlib: fix three trivial issues with parameter defaults (#9618)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user