style: some cleanup (#33857)

This commit is contained in:
Mason Daugherty
2025-11-06 23:50:46 -05:00
committed by GitHub
parent d40e340479
commit e023201d42
79 changed files with 662 additions and 531 deletions

View File

@@ -602,7 +602,7 @@ class _ConfigurableModel(Runnable[LanguageModelInput, Any]):
config: RunnableConfig | None = None,
**kwargs: Any,
) -> _ConfigurableModel:
"""Bind config to a Runnable, returning a new Runnable."""
"""Bind config to a `Runnable`, returning a new `Runnable`."""
config = RunnableConfig(**(config or {}), **cast("RunnableConfig", kwargs))
model_params = self._model_params(config)
remaining_config = {k: v for k, v in config.items() if k != "configurable"}

View File

@@ -3,8 +3,13 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
authors = []
name = "langchain"
description = "Building applications with LLMs through composability"
license = { text = "MIT" }
readme = "README.md"
authors = []
version = "1.0.4"
requires-python = ">=3.10.0,<4.0.0"
dependencies = [
"langchain-core>=1.0.0,<2.0.0",
@@ -12,11 +17,6 @@ dependencies = [
"pydantic>=2.7.4,<3.0.0",
]
name = "langchain"
version = "1.0.4"
description = "Building applications with LLMs through composability"
readme = "README.md"
[project.optional-dependencies]
model-profiles = ["langchain-model-profiles"]
community = ["langchain-community"]