MCPcopy Index your code
hub / github.com/dask/dask / interpret_value

Function interpret_value

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

Source from the content-addressed store, hash-verified

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

Callers 1

collect_envFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…