Skip to content

add missing docstrings to three public functions in utils/imports.py#1282

Open
RavSinghChandan wants to merge 1 commit into
huggingface:mainfrom
RavSinghChandan:docs/add-missing-docstrings-imports
Open

add missing docstrings to three public functions in utils/imports.py#1282
RavSinghChandan wants to merge 1 commit into
huggingface:mainfrom
RavSinghChandan:docs/add-missing-docstrings-imports

Conversation

@RavSinghChandan

Copy link
Copy Markdown

Three public functions in src/lighteval/utils/imports.py had no docstrings while the surrounding functions (is_package_available, required_dependencies, not_installed_error_message, requires) all do.

Added docstrings matching the existing style in the file:

  • is_multilingual_package_available — explains which packages are checked and the language-specific additions for Vietnamese and Chinese
  • raise_if_package_not_available — describes the multilingual special-case and how the error message is constructed
  • parse_specified_backends — explains what it resolves and when it raises

No logic changes.

…_package_not_available, parse_specified_backends
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant