MCPcopy Create free account
hub / github.com/python-hyper/uritemplate / replace_all

Method replace_all

uritemplate/template.py:110–111  ·  view source on GitHub ↗
(match: "re.Match[str]")

Source from the content-addressed store, hash-verified

108 expanded.update(v.expand(expansion))
109
110 def replace_all(match: "re.Match[str]") -> str:
111 return expanded.get(match.groups()[0], "")
112
113 def replace_partial(match: "re.Match[str]") -> str:
114 match_group = match.groups()[0]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected