mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-16 00:19:35 +00:00
Apply patch [skip ci]
This commit is contained in:
@@ -236,7 +236,7 @@ def test_inherit_run_name_with_chain() -> None:
|
||||
|
||||
class TestCallbackHandler(BaseCallbackHandler):
|
||||
def on_chain_start(
|
||||
self, _serialized: dict, _inputs: Any, **kwargs: Any
|
||||
self, serialized: dict[str, Any], inputs: dict[str, Any], **kwargs: Any
|
||||
) -> None:
|
||||
name = kwargs.get("name", "unnamed")
|
||||
captured_names.append(name)
|
||||
@@ -370,3 +370,4 @@ def test_inherit_run_name_merge_configs() -> None:
|
||||
"inherit_run_name should pass through ensure_config"
|
||||
)
|
||||
assert ensured.get("run_name") == "test_run", "run_name should be preserved"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user