style: more work for refs (#33508)

Largely:
- Remove explicit `"Default is x"` since new refs show default inferred
from sig
- Inline code (useful for eventual parsing)
- Fix code block rendering (indentations)
This commit is contained in:
Mason Daugherty
2025-10-15 18:46:55 -04:00
committed by GitHub
parent d0f8f00e7e
commit 26e0a00c4c
162 changed files with 1017 additions and 1135 deletions

View File

@@ -1530,7 +1530,7 @@ class ChatAnthropic(BaseChatModel):
@classmethod
def get_lc_namespace(cls) -> list[str]:
"""Get the namespace of the langchain object."""
"""Get the namespace of the LangChain object."""
return ["langchain", "chat_models", "anthropic"]
@property

View File

@@ -29,7 +29,7 @@ class ToolsOutputParser(BaseGenerationOutputParser):
"""Parse a list of candidate model Generations into a specific format.
Args:
result: A list of Generations to be parsed. The Generations are assumed
result: A list of `Generation` to be parsed. The Generations are assumed
to be different candidate outputs for a single model input.
partial: (Not used) Whether the result is a partial result. If `True`, the
parser may return a partial result, which may not be complete or valid.

View File

@@ -15,7 +15,7 @@ MODEL = "claude-3-5-haiku-latest"
class TestAnthropicStandard(ChatModelIntegrationTests):
"""Use the standard ChatModel integration tests against the ChatAnthropic class."""
"""Use standard chat model integration tests against the `ChatAnthropic` class."""
@property
def chat_model_class(self) -> type[BaseChatModel]:

View File

@@ -9,7 +9,7 @@ from langchain_anthropic import ChatAnthropic
class TestAnthropicStandard(ChatModelUnitTests):
"""Use the standard ChatModel unit tests against the ChatAnthropic class."""
"""Use the standard chat model unit tests against the `ChatAnthropic` class."""
@property
def chat_model_class(self) -> type[BaseChatModel]: