Add pydocstyle to the ruff rules (#52136)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <hej.mellor@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
+3 -6
View File
@@ -15,8 +15,7 @@ if TYPE_CHECKING:
class Ernie45ReasoningParser(BaseThinkingReasoningParser):
"""
Reasoning parser for Ernie45 thinking model.
"""Reasoning parser for Ernie45 thinking model.
The Ernie45 thinking model output format is
abc\n</think>\n\n<response>\ndef\n</response>\n
or abc\n</think>\ndef
@@ -60,8 +59,7 @@ class Ernie45ReasoningParser(BaseThinkingReasoningParser):
current_token_ids: Sequence[int],
delta_token_ids: Sequence[int],
) -> DeltaMessage | None:
"""
Extract reasoning content from a delta message.
"""Extract reasoning content from a delta message.
Handles streaming output where previous + delta = current.
Uses token IDs for faster processing.
The Ernie45 thinking model output format is
@@ -138,8 +136,7 @@ class Ernie45ReasoningParser(BaseThinkingReasoningParser):
def extract_reasoning(
self, model_output: str, request: "ChatCompletionRequest | ResponsesRequest"
) -> tuple[str | None, str | None]:
"""
Extract reasoning content from the model output.
"""Extract reasoning content from the model output.
The Ernie45 thinking model output format is
abc\n</think>\n\n\n<response>\ndef\n</response>\n
or abc\n</think>\ndef