Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/api/protocols.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ composability.
show_source: true
members: true
show_root_heading: true
class AsyncKeyValue(AsyncKeyValueProtocol, Protocol):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Custom agent flagged.

Raw Python class definition pasted into markdown without code fences as duplicated filler/AI slop inside an mkdocstrings options block.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At docs/api/protocols.md, line 14:

<comment>Raw Python class definition pasted into markdown without code fences as duplicated filler/AI slop inside an mkdocstrings options block.</comment>

<file context>
@@ -11,3 +11,9 @@ composability.
       show_source: true
       members: true
       show_root_heading: true
+      class AsyncKeyValue(AsyncKeyValueProtocol, Protocol):
+    """A protocol for key-value store operations.
+
</file context>

"""A protocol for key-value store operations.

Includes basic operations: get, put, delete, ttl
Includes bulk operations: get_many, put_many, delete_many, ttl_many.
"""
Comment on lines +14 to +19

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Remove manual source duplication; rely on mkdocstrings autogen.

The ::: directive on line 9 with show_source: true and members: true already renders the class signature, docstring, and members. Pasting the raw source here (lines 14-19) duplicates that output and risks stale docs when the source changes.

Either drop lines 14-19 entirely, or if the autogen output isn't rendering correctly, fix the mkdocstrings configuration rather than manually duplicating source.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/api/protocols.md` around lines 14 - 19, Remove the manually pasted
source block for AsyncKeyValue in the protocol docs and rely on the mkdocstrings
::: autogen output instead. Keep the documented class via the existing directive
and delete the duplicated raw class/source lines so the rendered docs come only
from autogen; if the output is missing or incomplete, adjust the mkdocstrings
configuration rather than reintroducing source duplication.