MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / _parse_yaml_value

Function _parse_yaml_value

scripts/common.py:1239–1243  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

1237
1238
1239def _parse_yaml_value(value: str) -> str | list[str]:
1240 value = value.strip()
1241 if value.startswith("[") and value.endswith("]"):
1242 return _split_inline_yaml_list(value[1:-1])
1243 return _parse_yaml_scalar(value)
1244
1245
1246def _parse_domain_rules_yaml(text: str) -> dict[str, list[dict[str, Any]]]:

Callers 1

_parse_domain_rules_yamlFunction · 0.85

Calls 2

_split_inline_yaml_listFunction · 0.85
_parse_yaml_scalarFunction · 0.85

Tested by

no test coverage detected