MCPcopy Create free account
hub / github.com/dask/dask / interpret_value

Function interpret_value

dask/config.py:281–289  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

279
280
281def interpret_value(value: str) -> Any:
282 try:
283 return ast.literal_eval(value)
284 except (SyntaxError, ValueError):
285 pass
286
287 # Avoid confusion of YAML vs. Python syntax
288 hardcoded_map = {"none": None, "null": None, "false": False, "true": True}
289 return hardcoded_map.get(value.lower(), value)
290
291
292def paths_containing_key(

Callers 1

collect_envFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected