---
π Key Changes
- **π Subpackage and Duplicate Import Support:** Subpackage imports are now supported seamlessly, and duplicate imports are handled without errorsβeliminating potential edge case issues.
- **π Updated Documentation:** Improved `README.md` to clearly explain how deferred imports work, focusing on showcasing realistic performance benefits.
- **π§ͺ Expanded Test Suite:** Added tests to cover submodule imports, multiple imports, and more scenarios, ensuring thorough validation of the lazy-loading logic.
- **π Refactored Code:** General cleanup, including relocating and removing unused imports, simplifying methods, and improving the overall maintainability of the code.
---
π― Purpose & Impact
- **π Streamlined Import Handling:** Managing subpackages and duplicate imports now reduces potential errors and enhances compatibility in complex scenarios. This allows for smoother integration when working with libraries like `torch`, `numpy`, and others.
- **π‘ Developer-Friendly Documentation:** The updated README provides clearer and more practical examples, lowering the learning curve for new users and demonstrating the tangible benefits of lazy imports.
- **π§ͺ Increased Test Confidence:** A more robust and expansive test suite identifies edge cases, enhancing the reliability of the library under different usage patterns.
- **π§ Code Clarity:** Refactoring makes the codebase cleaner and easier to maintain, fostering long-term scalability and readability for contributors.
π With this release, developers can enjoy a more powerful, reliable, and developer-friendly library for managing deferred imports efficiently. π
What's Changed
* Ultralytics Refactor https://ultralytics.com/actions by pderrenger in https://github.com/ultralytics/autoimport/pull/12
* Delete autoimport/README.md by glenn-jocher in https://github.com/ultralytics/autoimport/pull/13
* Scope time import by glenn-jocher in https://github.com/ultralytics/autoimport/pull/14
* Update pyproject.toml by glenn-jocher in https://github.com/ultralytics/autoimport/pull/15
* Update README.md by glenn-jocher in https://github.com/ultralytics/autoimport/pull/16
* Add submodule import tests by glenn-jocher in https://github.com/ultralytics/autoimport/pull/18
* Test multiple imports by glenn-jocher in https://github.com/ultralytics/autoimport/pull/19
* Fix subpackage imports and handle duplicate imports by Y-T-G in https://github.com/ultralytics/autoimport/pull/17
New Contributors
* Y-T-G made their first contribution in https://github.com/ultralytics/autoimport/pull/17
**Full Changelog**: https://github.com/ultralytics/autoimport/compare/v0.0.1...v0.0.2