Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
f6c8f5d8
Unverified
Commit
f6c8f5d8
authored
May 28, 2024
by
James Lamb
Committed by
GitHub
May 28, 2024
Browse files
[python-package] make LGBMDeprecationWarning inherit from FutureWarning (#6447)
parent
ceb99861
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+2
-1
No files found.
python-package/lightgbm/basic.py
View file @
f6c8f5d8
...
@@ -556,7 +556,8 @@ class LightGBMError(Exception):
...
@@ -556,7 +556,8 @@ class LightGBMError(Exception):
# DeprecationWarning is not shown by default, so let's create our own with higher level
# 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."""
"""Custom deprecation warning."""
pass
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment