Only suppress imports of optional external dependencies by dstansby · Pull Request #550 · zarr-developers/numcodecs · GitHub
Skip to content

Only suppress imports of optional external dependencies#550

Merged
dstansby merged 4 commits into
zarr-developers:mainfrom
dstansby:consistent-suppress
Dec 3, 2024
Merged

Only suppress imports of optional external dependencies#550
dstansby merged 4 commits into
zarr-developers:mainfrom
dstansby:consistent-suppress

Conversation

@dstansby

@dstansby dstansby commented Jul 14, 2024

Copy link
Copy Markdown
Contributor

This makes the suppression of import errors consistent with which codecs depend on optional external packages. If a codec doesn't depend on any code external to numcodecs, then import errors shouldn't be suppressed as they are indicating an issue with numcodecs itself.

I looked in git blame and there doesn't seem to be any commentary/reason given for these suppressions, and they all seem to have been added in the original PRs where each codec was added.

This came up over at zarr-developers/zarr-python#2032.

@codecov

codecov Bot commented Jul 14, 2024

Copy link
Copy Markdown

@rabernat

Copy link
Copy Markdown
Contributor

@dstansby dstansby merged commit 9bdbaf0 into zarr-developers:main Dec 3, 2024
@dstansby dstansby deleted the consistent-suppress branch December 3, 2024 11:09
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