mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-24 00:52:24 +00:00
ci(e2e): give string_leaves a single trailing return
This commit is contained in:
parent
468f74c628
commit
c8e42c2ac3
1 changed files with 1 additions and 2 deletions
3
.github/e2e-stack/redact_output.py
vendored
3
.github/e2e-stack/redact_output.py
vendored
|
|
@ -21,8 +21,7 @@ def string_leaves(node: JsonValue) -> tuple[str, ...]:
|
|||
return tuple(leaf for child in node for leaf in string_leaves(child))
|
||||
case dict():
|
||||
return tuple(leaf for child in node.values() for leaf in string_leaves(child))
|
||||
case _:
|
||||
return ()
|
||||
return ()
|
||||
|
||||
|
||||
def field_lines(value: str) -> tuple[str, ...]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue