Hello, What is the easiest way to silence below wa...
# ask-community
r
Hello, What is the easiest way to silence below warning when using FreshnessPolicies ?
Copy code
C:\Users\*****\AppData\Local\Programs\Python\Python310\lib\site-packages\dagster\_serdes\serdes.py:311: ExperimentalWarning: "FreshnessPolicy" is an experimental class. It may break in future versions, even between dot releases. To mute warnings for experimental functionality, invoke warnings.filterwarnings("ignore", category=dagster.ExperimentalWarning) or use one of the other methods described at <https://docs.python.org/3/library/warnings.html#describing-warning-filters>.
dagster bot responded by community 1
d
You can define an environment variable to ignore warnings
Copy code
export PYTHONWARNINGS="ignore"
Copy code
$ python
>>> import warnings
>>> warnings.warn('my warning')
>>>
👍 1
r
Thank you very much !