Skip to content

Commit

Permalink
use outputs.append correctly after bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Skarlinski committed Jun 14, 2024
1 parent 8ffb10a commit ad41178
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_paperqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ async def test_anyscale_chain():
"The {animal} says",
skip_system=True,
)
outputs = []
outputs = [] # type: ignore[var-annotated]
completion = await call({"animal": "duck"}, callbacks=[outputs.append]) # type: ignore[call-arg]
assert completion.seconds_to_first_token > 0
assert completion.prompt_count > 0
Expand All @@ -590,11 +590,7 @@ async def test_anyscale_chain():
assert completion.seconds_to_first_token == 0
assert completion.seconds_to_last_token > 0

# check with mixed callbacks
async def ac(x): # noqa: ARG001
pass

completion = await call({"animal": "duck"}, callbacks=[accum, ac]) # type: ignore[call-arg]
completion = await call({"animal": "duck"}, callbacks=[outputs.append]) # type: ignore[call-arg]


def test_docs():
Expand Down

0 comments on commit ad41178

Please sign in to comment.