Skip to content

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

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

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
@RavSinghChandan

Copy link
Copy Markdown
Author

Closing this since it's been open a while without review. Happy to reopen if it's still useful. Thanks!

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