Python supprime les avertissements en fonction
import warnings
warnings.filterwarnings("ignore")
Busy Boar
import warnings
warnings.filterwarnings("ignore")
import warnings
def fxn():
warnings.warn("deprecated", DeprecationWarning)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
fxn()