MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / _wrap

Function _wrap

tests/unit/test_group_a_rules.py:20–22  ·  view source on GitHub ↗
(code: str)

Source from the content-addressed store, hash-verified

18
19
20def _wrap(code: str) -> str:
21 indented = "\n".join(" " + l for l in textwrap.dedent(code).splitlines())
22 return f"def _view(request):\n{indented}\n"
23
24
25def run_pyspector(code: str, filename: str = "app.py") -> list[dict]:

Callers 1

run_pyspectorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected