8000 Improve error message in `combine_widgets` by lucyleeow · Pull Request #7194 · napari/napari · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve error message in combine_widgets #7194

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 27, 2024

Conversation

lucyleeow
Copy link
Contributor

References and relevant issues

closes #6232

Updates error message to mention magicgui.widgets.Widget, which we do also support. Although it seems like magicgui.widgets.Widget is a subclass of QWidget, magicgui no longer uses QWidget directly:

napari/napari/_qt/utils.py

Lines 227 to 228 in 7099b18

# compatibility with magicgui v0.2.0 which no longer uses QWidgets
# directly. Like vispy, the backend widget is at widget.native

Description

Added test. Although combine_widgets is technically in napari/_qt/utils I've put the test in napari/_qt/widgets/_tests/test_qt_dock_widget.py as it seems it should sit with the other widget tests.

@lucyleeow lucyleeow added the maintenance PR with maintance changes, label Aug 15, 2024
@github-actions github-actions bot added tests Something related to our tests qt Relates to qt labels Aug 15, 2024
Copy link
codecov bot commented Aug 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.73%. Comparing base (35a9936) to head (10ded0e).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7194      +/-   ##
==========================================
- Coverage   92.82%   92.73%   -0.10%     
==========================================
  Files         623      623              
  Lines       56972    56976       +4     
==========================================
- Hits        52885    52835      -50     
- Misses       4087     4141      +54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jni jni changed the title MNT Improve error message in combine_widgets Improve error message in combine_widgets Aug 15, 2024
@jni jni added this to the 0.5.3 milestone Aug 15, 2024
Copy link
Member
@psobolewskiPhD psobolewskiPhD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! Thanks!

@psobolewskiPhD psobolewskiPhD added the ready to merge Last chance for comments! Will be merged in ~24h label Aug 15, 2024
@GenevieveBuckley
Copy link
Contributor

Re-running the failed CI windows PR test, hopefully it was just being flaky earlier

@DragaDoncila DragaDoncila merged commit 4e098a5 into napari:main Aug 27, 2024
36 checks passed
@github-actions github-actions bot removed the ready to merge Last chance for comments! Will be merged in ~24h label Aug 27, 2024
@lucyleeow lucyleeow deleted the widget_error branch August 27, 2024 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance PR with maintance changes, qt Relates to qt tests Something related to our tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add magicgui.widgets.Widget to combine_widgets error message
6 participants
0