Skip to content

move return part out of finally block#75

Merged
DragaDoncila merged 1 commit intonapari:mainfrom
brisvag:fix/syntax-warn
Feb 10, 2026
Merged

move return part out of finally block#75
DragaDoncila merged 1 commit intonapari:mainfrom
brisvag:fix/syntax-warn

Conversation

@brisvag
Copy link
Contributor

@brisvag brisvag commented Feb 6, 2026

When bumping napari to python 3.14, this triggers a syntax warning, due to PEP 765.

This should be the correct fix.

@brisvag
Copy link
Contributor Author

brisvag commented Feb 6, 2026

@DragaDoncila please sanity check this! Assuming this is even needed since we're dropping npe1 stuff in the same release?

Copy link
Contributor

@DragaDoncila DragaDoncila left a comment

Choose a reason for hiding this comment

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

@brisvag this looks fine to me. We use napari-plugin-engine for the translations stuff, which I don't remove in napari/napari#8622, so I think we should include this PR for now. We'll need a release, right?

@brisvag
Copy link
Contributor Author

brisvag commented Feb 9, 2026

👍 Yep, we can release straight away, this is a good change no matter what.

@DragaDoncila DragaDoncila merged commit 67b3fb4 into napari:main Feb 10, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants