Skip to content

change LightningDeprecationWarning to inherit from FutureWarning#21615

Open
knQzx wants to merge 1 commit intoLightning-AI:masterfrom
knQzx:fix/deprecation-to-future-warning
Open

change LightningDeprecationWarning to inherit from FutureWarning#21615
knQzx wants to merge 1 commit intoLightning-AI:masterfrom
knQzx:fix/deprecation-to-future-warning

Conversation

@knQzx
Copy link
Copy Markdown

@knQzx knQzx commented Mar 26, 2026

DeprecationWarning is hidden by default in python so end-users never see these warnings. changed the base class to FutureWarning which is shown by default, and removed the simplefilter override that was only needed because DeprecationWarning was suppressed

fixes #11525


📚 Documentation preview 📚: https://pytorch-lightning--21615.org.readthedocs.build/en/21615/

DeprecationWarning is hidden by default in python so end-users
never see it. FutureWarning is shown by default which is what
we want here since these target end-users not library devs.
also removes the now-unnecessary simplefilter override

fixes Lightning-AI#11525
@github-actions github-actions bot added the fabric lightning.fabric.Fabric label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fabric lightning.fabric.Fabric

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use FutureWarning instead of DeprecationWarning for deprecation warning

1 participant