MCPcopy
hub / github.com/marimo-team/marimo / _sanitize_version

Function _sanitize_version

tests/mocks.py:123–130  ·  view source on GitHub ↗
(output: str)

Source from the content-addressed store, hash-verified

121
122
123def _sanitize_version(output: str) -> str:
124 output = output.replace(f"{__version__} (editable)", "0.0.0").replace(
125 f"{__version__}", "0.0.0"
126 )
127 output = re.sub(
128 r'"marimo_version": "[^"]*"', '"marimo_version": "0.0.0"', output
129 )
130 return output
131
132
133def delete_lines_with_files(output: str) -> str:

Callers 2

snapshotFunction · 0.85

Calls 2

subMethod · 0.80
replaceMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…