Fix Codacy Warnings (#477)
--------- Co-authored-by: Dario Coscia <dariocos99@gmail.com>
This commit is contained in:
committed by
Nicola Demo
parent
e3790e049a
commit
4177bfbb50
@@ -1,3 +1,7 @@
|
||||
"""
|
||||
Old module for adaptive functions. Deprecated in 0.2.0.
|
||||
"""
|
||||
|
||||
import warnings
|
||||
|
||||
from ..adaptive_function import *
|
||||
@@ -8,7 +12,7 @@ from ..utils import custom_warning_format
|
||||
warnings.formatwarning = custom_warning_format
|
||||
warnings.filterwarnings("always", category=DeprecationWarning)
|
||||
warnings.warn(
|
||||
f"'pina.adaptive_functions' is deprecated and will be removed "
|
||||
f"in future versions. Please use 'pina.adaptive_function' instead.",
|
||||
"'pina.adaptive_functions' is deprecated and will be removed "
|
||||
"in future versions. Please use 'pina.adaptive_function' instead.",
|
||||
DeprecationWarning,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user