mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
mypy
This commit is contained in:
parent
d1d7d0cb27
commit
4ba9c16f74
@ -2758,12 +2758,13 @@ def test_reprsentation_of_runnables() -> None:
|
|||||||
|
|
||||||
assert repr(RunnableLambda(func=f, afunc=af)) == "RunnableLambda(...)"
|
assert repr(RunnableLambda(func=f, afunc=af)) == "RunnableLambda(...)"
|
||||||
|
|
||||||
sequence = RunnableLambda(lambda x: x + 2) | {
|
assert repr(
|
||||||
"a": RunnableLambda(lambda x: x * 2),
|
RunnableLambda(lambda x: x + 2)
|
||||||
"b": RunnableLambda(lambda x: x * 3),
|
| {
|
||||||
}
|
"a": RunnableLambda(lambda x: x * 2),
|
||||||
|
"b": RunnableLambda(lambda x: x * 3),
|
||||||
assert repr(sequence) == (
|
}
|
||||||
|
) == (
|
||||||
"RunnableLambda(lambda x: x * 3)\n"
|
"RunnableLambda(lambda x: x * 3)\n"
|
||||||
"| {\n"
|
"| {\n"
|
||||||
" a: RunnableLambda(...),\n"
|
" a: RunnableLambda(...),\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user