INNER CODE UNIT · Python
is_at
Leadaxe/LxBox · app/scripts/format_wizard_template.py:23
def is_at(s: Any) -> bool:
return isinstance(s, str) and s.startswith("@")
def if_cond(d: dict[str, Any]) -> str:
return compact({k: d[k] for k in ("and", "or") if k in d})
def strip_trailing_commas(text: str) -> str:
prev = None
while prev != text:
prev = text
text = re.sub(r",(\s*[\]\}])", r"\1", text)
return text
def is_simple_var(v: dict[str, Any]) -> bool:
if "ref" in v: