Skip to content
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

Small warnings refactor at next major release #5507

Open
trexfeathers opened this issue Sep 20, 2023 · 0 comments
Open

Small warnings refactor at next major release #5507

trexfeathers opened this issue Sep 20, 2023 · 0 comments

Comments

@trexfeathers
Copy link
Contributor

📰 Custom Issue

#5498 revealed several existing uses of warning subcategories that could not be changed without it being breaking. These should therefore be addressed at the next major release, to make Iris' use of warnings as rational/unsurprising as possible.

class TranslationWarning(IrisNimrodTranslationWarning):
"""
Backwards compatible form of :class:`iris.exceptions.IrisNimrodTranslationWarning`.
"""
# TODO: remove at the next major release.
pass

class UnknownCellMethodWarning(iris.exceptions.IrisUnknownCellMethodWarning):
"""
Backwards compatible form of :class:`iris.exceptions.IrisUnknownCellMethodWarning`.
"""
# TODO: remove at the next major release.
pass

class TranslationWarning(IrisNimrodTranslationWarning):
"""
Backwards compatible form of :class:`iris.exceptions.IrisNimrodTranslationWarning`.
"""
# TODO: remove at the next major release.
pass

iris/lib/iris/__init__.py

Lines 178 to 179 in 257be15

# TODO: next major release: set IrisDeprecation to subclass
# DeprecationWarning instead of UserWarning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant