-
Notifications
You must be signed in to change notification settings - Fork 28
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
Allow arbitrary menu locations in npe2 #160
Conversation
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## main #160 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 26 26
Lines 1717 1707 -10
=========================================
- Hits 1717 1707 -10
Continue to review full report at Codecov.
|
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.
much much easier to work with, thank you
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.
lovely
This reverts commit 5587f4f.
…ems (#175) * Revert "Allow arbitrary menu locations in npe2 (#160)" This reverts commit 5587f4f. * change menus contribution to dict * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix bad merge * fix test Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This PR is an alternative to #159 which allows for arbitrary menu locations in npe2. The validation would now happen in napari, or in subsequent PRs. The main change is to drop
MenusContribution
, and instead just have a dict, which allows us to use keys that are strings containing/
and so we don't need to do any menu coercion.This PR came from recommendations of @nclack and @tlambert03 after reviewing #159 in person together at the napari hackathon. cc @kne42 @Carreau