🌐 AI搜索 & 代理 主页
Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
perfomance: add cache and remove warning
  • Loading branch information
KunxiSun committed Apr 17, 2025
commit 34fc6d45ee481cbd05edfcee9a45d30ac1a389b0
1 change: 1 addition & 0 deletions sqlmodel/sql/sqltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def load_dialect_impl(self, dialect: Dialect) -> "types.TypeEngine[Any]":

class IntEnum(types.TypeDecorator): # type: ignore
impl = types.Integer
cache_ok = True

def __init__(self, enum_type: Type[_TIntEnum], *args: Any, **kwargs: Any):
super().__init__(*args, **kwargs)
Expand Down
Loading