Skip to content

Commit 6303080

Browse files
vvillait88claude
andcommitted
chore: docstring HeadersLike protocol stubs (resolve code-quality bot flag)
The bot flagged the bare '...' stub body as 'statement has no effect' on the changed line; a docstring body is a real statement, satisfies the bot, and self-documents the protocol methods. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3a2a9a0 commit 6303080

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

agentscore_commerce/aip/request.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ class HeadersLike(Protocol):
4949
repeated header. Both are case-insensitive for these implementations.
5050
"""
5151

52-
def get(self, key: str, /) -> str | None: ...
52+
def get(self, key: str, /) -> str | None:
53+
"""First value for ``key`` (case-insensitive), or ``None`` if absent."""
5354

54-
def getlist(self, key: str) -> list[str]: ...
55+
def getlist(self, key: str) -> list[str]:
56+
"""Every value for a repeated ``key``."""
5557

5658

5759
@runtime_checkable

0 commit comments

Comments
 (0)