(edge: dict)
| 1405 | return raw_target == _make_id(str(candidate)) |
| 1406 | |
| 1407 | def _is_code_span_mention(edge: dict) -> bool: |
| 1408 | target = nodes_by_id.get(edge.get("target")) |
| 1409 | return ( |
| 1410 | target is not None |
| 1411 | and target.get("file_type") == "code" |
| 1412 | and not _is_file_node(target) |
| 1413 | ) |
| 1414 | |
| 1415 | def _is_code_file_citation(edge: dict) -> bool: |
| 1416 | """A page -> source-file link citation minted by markdown resolution (#4804).""" |
no test coverage detected