Skip to content

Commit 793f643

Browse files
committed
Simplify typehint in tool use test case
1 parent 7f7c88a commit 793f643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _append_fragment(f: LlmPredictionFragment, round_index: int) -> None:
245245
assert cloned_chat._messages == chat._messages
246246

247247

248-
def divide(numerator: float, denominator: float) -> float | str:
248+
def divide(numerator: float, denominator: float) -> float:
249249
"""Divide the given numerator by the given denominator. Return the result."""
250250
return numerator / denominator
251251

0 commit comments

Comments
 (0)