dang it darglint

This commit is contained in:
Khaleel Al-Adhami 2024-11-01 15:39:19 -07:00
parent 8955410d1d
commit b95a8e0ac5

View File

@ -208,6 +208,9 @@ def get_install_package_manager(on_failure_return_none: bool = False) -> str | N
"""Get the package manager executable for installation.
Currently, bun is used for installation only.
Args:
on_failure_return_none: Whether to return None on failure.
Returns:
The path to the package manager.
"""
@ -225,6 +228,9 @@ def get_package_manager(on_failure_return_none: bool = False) -> str | None:
"""Get the package manager executable for running app.
Currently on unix systems, npm is used for running the app only.
Args:
on_failure_return_none: Whether to return None on failure.
Returns:
The path to the package manager.
@ -925,6 +931,9 @@ def install_frontend_packages(packages: set[str], config: Config):
packages: A list of package names to be installed.
config: The config object.
Raises:
FileNotFoundError: If the package manager is not found.
Example:
>>> install_frontend_packages(["react", "react-dom"], get_config())
"""