(match: "re.Match[str]")
| 111 | return expanded.get(match.groups()[0], "") |
| 112 | |
| 113 | def replace_partial(match: "re.Match[str]") -> str: |
| 114 | match_group = match.groups()[0] |
| 115 | var = "{%s}" % match_group |
| 116 | return expanded.get(match_group) or var |
| 117 | |
| 118 | replace_func = replace_partial if replace else replace_all |
| 119 |
nothing calls this directly
no outgoing calls
no test coverage detected