Skip to content

Conversation

@briangreunke
Copy link
Contributor

@briangreunke briangreunke commented Sep 6, 2025

Generated Summary:

  • Updated import handling in several modules to improve error messages for missing dependencies.
  • Introduced a check_imports function in image.py and table.py to raise informative errors if required packages (PIL, NumPy, Pandas) are not installed.
  • Consolidated import error message generation into a new utility function, generate_import_error_msg, for better maintainability.
  • Changed the way some libraries are imported, utilizing lazy imports within their respective functions to optimize performance and reduce initial load time.
  • Modified the pyproject.toml to include a new dependency on datasets and made minor adjustments to the training dependencies.
  • Overall, these changes enhance the robustness of the package and provide clearer guidance to users regarding missing dependencies.

This summary was generated with ❤️ by rigging

@dreadnode-renovate-bot dreadnode-renovate-bot bot added the area/python Changes to Python package configuration and dependencies label Sep 6, 2025
@briangreunke briangreunke changed the title Fix/data types imports fix: data type imports and typing Sep 6, 2025
@briangreunke briangreunke marked this pull request as ready for review September 6, 2025 03:14
@briangreunke briangreunke merged commit 34774a1 into main Sep 6, 2025
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/python Changes to Python package configuration and dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants