Skip to content

Commit 34fc6d4

Browse files
author
KunxiSun
committed
perfomance: add cache and remove warning
1 parent 921c295 commit 34fc6d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlmodel/sql/sqltypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def load_dialect_impl(self, dialect: Dialect) -> "types.TypeEngine[Any]":
2121

2222
class IntEnum(types.TypeDecorator): # type: ignore
2323
impl = types.Integer
24+
cache_ok = True
2425

2526
def __init__(self, enum_type: Type[_TIntEnum], *args: Any, **kwargs: Any):
2627
super().__init__(*args, **kwargs)

0 commit comments

Comments
 (0)