Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit 2a55849

Browse files
committed
Fix: 循环导入
1 parent 9a58760 commit 2a55849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

muicebot/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from mimetypes import guess_extension
66
from typing import List, Literal, Optional, Union
77

8-
from .utils.utils import guess_mimetype
9-
108

119
@dataclass
1210
class Resource:
@@ -46,6 +44,8 @@ def ensure_mimetype(self):
4644
"""
4745
保证 mimetype 是确定的
4846
"""
47+
from .utils.utils import guess_mimetype
48+
4949
self.mimetype = guess_mimetype(self)
5050
if self.mimetype:
5151
self.extension = guess_extension(self.mimetype)

0 commit comments

Comments
 (0)