enable inline import alert and fix inline imports (#2856)

This commit is contained in:
Shuchang Zheng
2025-07-01 12:48:00 -07:00
committed by GitHub
parent 47f9f1dabb
commit 41f77a40c8
7 changed files with 13 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
import importlib
import json
import types
from unittest.mock import AsyncMock
@@ -16,8 +17,6 @@ class DummyResponse(dict):
self.choices = [types.SimpleNamespace(message=types.SimpleNamespace(content=content))]
def model_dump_json(self, indent: int = 2):
import json
return json.dumps(self, indent=indent)