Skip to content

Commit 128be1d

Browse files
committed
refactor: move asyncio and functools imports to module level
Move imports out of function body for better code organization
1 parent 77d0dbe commit 128be1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stackone_ai/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import asyncio
12
import base64
23
import json
34
from collections.abc import Sequence
45
from enum import Enum
6+
from functools import partial
57
from typing import Annotated, Any, TypeAlias, cast
68

79
import requests
@@ -260,8 +262,6 @@ async def acall(self, *args: Any, **kwargs: Any) -> JsonDict:
260262
"""
261263
# For now, we'll use asyncio to run the sync version
262264
# In the future, this should use aiohttp for true async
263-
import asyncio
264-
from functools import partial
265265

266266
# Create a partial function with the arguments
267267
if args and kwargs:

0 commit comments

Comments
 (0)