INNER CODE UNIT · Python

start

christopherkarani/Wax · Resources/hermes/wax-memory-plugin/cli.py:81

                start = index + 1
    parts.append(value[start:].strip())
    return [part for part in parts if part]


def _mapping_pair(value: str) -> tuple[str, str] | None:
    depth = 0
    quote = ""
    for index, character in enumerate(value):
        if character in {"'", '"'}:
            if not quote:
                quote = character
            elif quote == character:
                quote = ""
        elif not quote:
            if character in "{[":
                depth += 1
            elif character in "}]":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…