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

Method getfloat

airflow/configuration.py:430–439  ·  view source on GitHub ↗
(self, section, key, **kwargs)

Source from the content-addressed store, hash-verified

428 )
429
430 def getfloat(self, section, key, **kwargs):
431 val = self.get(section, key, **kwargs)
432
433 try:
434 return float(val)
435 except ValueError:
436 raise AirflowConfigException(
437 f'Failed to convert value to float. Please check "{key}" key in "{section}" section. '
438 f'Current value: "{val}".'
439 )
440
441 def getimport(self, section, key, **kwargs): # noqa
442 """

Callers 8

test_getfloatMethod · 0.95
getfloatFunction · 0.80
celery_executor.pyFile · 0.80
BaseJobClass · 0.80
__init__Method · 0.80
_run_scheduler_loopMethod · 0.80
DagBagClass · 0.80

Calls 2

getMethod · 0.95

Tested by 2

test_getfloatMethod · 0.76