MCPcopy
hub / github.com/apache/airflow / _create_future_warning

Method _create_future_warning

airflow/configuration.py:267–276  ·  view source on GitHub ↗
(name, section, current_value, new_value, version)

Source from the content-addressed store, hash-verified

265
266 @staticmethod
267 def _create_future_warning(name, section, current_value, new_value, version):
268 warnings.warn(
269 'The {name} setting in [{section}] has the old default value '
270 'of {current_value!r}. This value has been changed to {new_value!r} in the '
271 'running config, but please update your config before Apache '
272 'Airflow {version}.'.format(
273 name=name, section=section, current_value=current_value, new_value=new_value, version=version
274 ),
275 FutureWarning,
276 )
277
278 ENV_VAR_PREFIX = 'AIRFLOW__'
279

Callers 1

validateMethod · 0.95

Calls 2

warnMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected