Skip to content

Commit 4556a5b

Browse files
committed
Use single backticks in snapshot helper docstrings
Pre-commit's no-double-backticks-in-docstrings hook (and AGENTS.md) require Markdown inline code, not reStructuredText.
1 parent 5290ca4 commit 4556a5b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

marimo/_server/scratchpad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ def snapshot_for_scratchpad(
193193
) -> tuple[tuple[NotebookCell, ...], CellOutputs]:
194194
"""Snapshot the notebook document and per-cell outputs for code_mode.
195195
196-
Returned by both ``/api/execute`` and the MCP ``execute_code`` tool
197-
and passed on ``ExecuteScratchpadCommand`` so ``cm.get_context()``
196+
Returned by both `/api/execute` and the MCP `execute_code` tool
197+
and passed on `ExecuteScratchpadCommand` so `cm.get_context()`
198198
can expose cells and their last outputs.
199199
"""
200200
cell_ids = session.document.cell_ids

tests/_server/test_scratchpad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _parse_sse(sse: str) -> tuple[str, dict[str, object]]:
5454

5555

5656
class TestSnapshotForScratchpad:
57-
"""Snapshot helper shared by ``/api/execute`` and MCP ``execute_code``."""
57+
"""Snapshot helper shared by `/api/execute` and MCP `execute_code`."""
5858

5959
def test_packages_document_and_outputs(self) -> None:
6060
from marimo._ast.cell import CellConfig

0 commit comments

Comments
 (0)