-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
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
fix: Allow user to overwrite default widget opts #602
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #602 +/- ##
=======================================
Coverage 87.98% 87.98%
=======================================
Files 39 39
Lines 4609 4609
=======================================
Hits 4055 4055
Misses 554 554
☔ View full report in Codecov by Sentry. |
It looks like a failure of the docs is unrelated to PR. |
Since the pr is mostly rename now, can you point out which part specifically fixes the napari issue ? |
widget_type_ = match_type(type_, value) | ||
if widget_type_: | ||
cls_, opts = widget_type_ | ||
return cls_, {**opts, **options} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this
widget_type_ = match_return_type(type_) | ||
if widget_type_: | ||
cls_, opts = widget_type_ | ||
return cls_, {**opts, **options} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here same change, but it is not the code branch reached by the original issue.
the change is to change |
thanks! |
This PR fixes napari/napari#6354
It also renamems multiple variables starting from
_
to ending with_
as it is convention to use leading underscore as an unused variable when it is a local variable in functions so make it harder for me to follow flow of code.