Skip to content

Commit

Permalink
fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jul 14, 2023
1 parent 474f867 commit 18fc95f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions codeinterpreterapi/callbacks.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from uuid import UUID
from typing import Any, Optional, List
from typing import Any, Optional, TYPE_CHECKING
from langchain.schema import AgentAction
from langchain.callbacks import AsyncIteratorCallbackHandler
from codeinterpreterapi.session import CodeInterpreterSession

if TYPE_CHECKING:
from codeinterpreterapi.session import CodeInterpreterSession


class CodeCallbackHandler(AsyncIteratorCallbackHandler):
def __init__(self, session: CodeInterpreterSession):
def __init__(self, session: "CodeInterpreterSession"):
self.session = session
super().__init__()

Expand Down

0 comments on commit 18fc95f

Please sign in to comment.