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

Function _copy_default_domain_rules

scripts/common.py:1186–1193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1184
1185
1186def _copy_default_domain_rules() -> dict[str, list[dict[str, Any]]]:
1187 return {
1188 section: [
1189 {key: list(value) if isinstance(value, list) else value for key, value in rule.items()}
1190 for rule in DEFAULT_DOMAIN_RULES[section]
1191 ]
1192 for section in DOMAIN_SECTIONS
1193 }
1194
1195
1196def _strip_yaml_comment(line: str) -> str:

Callers 1

load_domain_rulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected