Skip to content

refactor warnings #3098

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

d-v-b
Copy link
Contributor

@d-v-b d-v-b commented May 25, 2025

closes #3096

this PR adds zarr-specific subclasses of FutureWarning and DeprecationWarning, so that we can expose routines for silencing future / deprecation warnings specifically emitted by zarr-python.

This PR is a draft until I add the silencing routines later in this PR.

@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label May 25, 2025
@dstansby
Copy link
Contributor

👍 to having our own zarr warning sub-classes, I think I'm 👎 on having some of our own warning silencing helpers, but depends on what the proposal is I guess. So would be good to have separate PRs for those.

@d-v-b
Copy link
Contributor Author

d-v-b commented Jun 30, 2025

I amended the PR description to remove the goal of providing top-level functions for users to silence zarr warnings. For now, users can use the built-in warnings library to control warnings.

@d-v-b d-v-b marked this pull request as ready for review June 30, 2025 08:48
@d-v-b d-v-b requested review from jhamman and TomAugspurger June 30, 2025 08:48
@d-v-b d-v-b added this to the 3.0.9 milestone Jun 30, 2025
@d-v-b d-v-b removed this from the 3.0.9 milestone Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs release notes Automatically applied to PRs which haven't added release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve control over warnings
2 participants