mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 00:11:17 +00:00
core[patch]: fix init of RunnableAssign (#26903)
Example in API ref currently raises ValidationError. Resolves https://github.com/langchain-ai/langchain/issues/26862
This commit is contained in:
@@ -389,7 +389,7 @@ class RunnableAssign(RunnableSerializable[dict[str, Any], dict[str, Any]]):
|
||||
# returns {'input': 5, 'add_step': {'added': 15}}
|
||||
"""
|
||||
|
||||
mapper: RunnableParallel[dict[str, Any]]
|
||||
mapper: RunnableParallel
|
||||
|
||||
def __init__(self, mapper: RunnableParallel[dict[str, Any]], **kwargs: Any) -> None:
|
||||
super().__init__(mapper=mapper, **kwargs) # type: ignore[call-arg]
|
||||
|
Reference in New Issue
Block a user