Skip to content

Commit 3969f7c

Browse files
author
lmh
committed
fix: move import to closure
1 parent a143863 commit 3969f7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

volcenginesdkarkruntime/_utils/_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
from datetime import date, datetime
3232
from typing_extensions import TypeGuard
3333

34-
import sniffio
35-
3634
from .._types import NotGiven, FileTypes, NotGivenOr
3735

3836
_T = TypeVar("_T")
@@ -382,6 +380,7 @@ def file_from_path(path: str) -> FileTypes:
382380

383381
def get_async_library() -> str:
384382
try:
383+
import sniffio
385384
return sniffio.current_async_library()
386385
except Exception:
387386
return "false"

0 commit comments

Comments
 (0)