fix: GSDFC docstring conformance, modernize legacy typing to match signatures; regenerate lib/MCP docs (pydoclint zero)
This commit is contained in:
@@ -55,11 +55,11 @@ def _extract_from_part(part: dict[str, Any]) -> str | None:
|
||||
- `text/html` (converted to plain text)
|
||||
|
||||
Args:
|
||||
part (Dict[str, Any]):
|
||||
part (dict[str, Any]):
|
||||
MIME part dictionary from a provider payload.
|
||||
|
||||
Returns:
|
||||
Optional[str]:
|
||||
str | None:
|
||||
Extracted plain-text content, or `None` if unsupported or empty.
|
||||
"""
|
||||
mime_type = part.get("mimeType")
|
||||
@@ -94,7 +94,7 @@ def extract_body(payload: dict[str, Any]) -> str:
|
||||
4. Empty string (if nothing usable found)
|
||||
|
||||
Args:
|
||||
payload (Dict[str, Any]):
|
||||
payload (dict[str, Any]):
|
||||
Provider-native message payload dictionary.
|
||||
|
||||
Returns:
|
||||
|
||||
Reference in New Issue
Block a user