Skip to content

Commit

Permalink
style(mypy): Add explicit future type
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Feb 26, 2025
1 parent 17c163a commit ceaa989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libertai_agents/libertai_agents/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import time
import weakref
from asyncio import Future
from http import HTTPStatus
from typing import Any, AsyncIterable, Awaitable

Expand Down Expand Up @@ -255,7 +256,7 @@ def __execute_tool_calls(
function_name = call.function.name
tool = find(lambda x: x.name == function_name, self.tools)
if tool is None:
future = asyncio.Future()
future: Future = asyncio.Future()
future.set_result(None)
executed_calls.append(future)
continue
Expand Down

0 comments on commit ceaa989

Please sign in to comment.