Closed hanjinliu closed 3 months ago
The recent changes involve refactoring import statements and adding a new function in the magicclass/_gui/_base.py
file to handle separators. Additionally, modifications in tests/test_construction.py
include updating the import source for Separator
and adjusting test cases accordingly. These updates focus on improving code organization and enhancing test accuracy.
File(s) | Summary |
---|---|
magicclass/_gui/_base.py |
- Imported types as _mgui_types from magicgui - Refactored import statements - Added _is_separator(attr) function for separator detection |
tests/test_construction.py |
Updated import statement for Separator and modified test cases to assert widget types within magicclass instances |
In the realm of code so bright and neat,
Functions dance, and imports meet.
Separators guard the path so clear,
With tests in line, we persevere.
Our magicclass now stands refined,
A testament to codes entwined.
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
As magicgui natively supported Separator object, we can also use it for adding separators to magicclass.
Summary by CodeRabbit