Fix Codacy Warnings (#477)

---------

Co-authored-by: Dario Coscia <dariocos99@gmail.com>
This commit is contained in:
Filippo Olivo
2025-03-10 15:38:45 +01:00
committed by Nicola Demo
parent e3790e049a
commit 4177bfbb50
157 changed files with 3473 additions and 3839 deletions

View File

@@ -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,
)