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

Function valid_section_id

scripts/lint_grounding.py:121–123  ·  view source on GitHub ↗
(value: Any, valid_ids: set[str])

Source from the content-addressed store, hash-verified

119
120
121def valid_section_id(value: Any, valid_ids: set[str]) -> bool:
122 section_id = normalize_whitespace(str(value))
123 return bool(section_id and section_id in valid_ids)
124
125
126def valid_pages(value: Any, max_page: int) -> bool:

Callers 1

source_grounding_errorsFunction · 0.85

Calls 1

normalize_whitespaceFunction · 0.90

Tested by

no test coverage detected