Unverified Commit f6c8f5d8 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[python-package] make LGBMDeprecationWarning inherit from FutureWarning (#6447)

parent ceb99861
......@@ -556,7 +556,8 @@ class LightGBMError(Exception):
# DeprecationWarning is not shown by default, so let's create our own with higher level
class LGBMDeprecationWarning(UserWarning):
# ref: https://peps.python.org/pep-0565/#additional-use-case-for-futurewarning
class LGBMDeprecationWarning(FutureWarning):
"""Custom deprecation warning."""
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment