diff --git a/odoo-stubs/tools/which.pyi b/odoo-stubs/tools/which.pyi index acf03ef..a873fe2 100644 --- a/odoo-stubs/tools/which.pyi +++ b/odoo-stubs/tools/which.pyi @@ -1,13 +1,12 @@ from os import R_OK as R_OK, W_OK as W_OK from os.path import dirname as dirname -from typing import Any +from typing import Iterator __docformat__: str -__all__: Any ENOENT: int -windows: Any -seen: Any -defpathext: Any +windows: bool +seen: set +defpathext: list[str] -def which_files(file, mode=..., path: Any | None = ..., pathext: Any | None = ...) -> None: ... -def which(file, mode=..., path: Any | None = ..., pathext: Any | None = ...): ... +def which_files(file: str, mode: int = ..., path: str | None = ..., pathext: str | None = ...) -> Iterator[str]: ... +def which(file: str, mode: int = ..., path: str | None = ..., pathext: str | None = ...) -> str: ...