MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / strict_one_ref

Method strict_one_ref

tensorflow/tools/docs/parser.py:284–289  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

282 """
283
284 def strict_one_ref(match):
285 try:
286 return self._one_ref(match, relative_path_to_root)
287 except TFDocsError as e:
288 self.add_error(e.message)
289 return 'BAD_LINK'
290
291 string = re.sub(SYMBOL_REFERENCE_RE, strict_one_ref, string)
292

Callers

nothing calls this directly

Calls 2

_one_refMethod · 0.95
add_errorMethod · 0.95

Tested by

no test coverage detected