MCPcopy
hub / github.com/vinta/awesome-python / _href

Function _href

website/readme_parser.py:156–159  ·  view source on GitHub ↗

Return the link's href attribute as a string, or '' if missing.

(link: SyntaxTreeNode)

Source from the content-addressed store, hash-verified

154
155
156def _href(link: SyntaxTreeNode) -> str:
157 """Return the link's href attribute as a string, or '' if missing."""
158 href = link.attrGet("href")
159 return href if isinstance(href, str) else ""
160
161
162def _find_inline(node: SyntaxTreeNode) -> SyntaxTreeNode | None:

Callers 3

_render_inlineFunction · 0.85
_parse_list_entriesFunction · 0.85
_parse_sponsor_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected