Skip to content

Commit 1d9fee6

Browse files
add Enum to immutable types (#5808)
1 parent 59c980e commit 1d9fee6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reflex/utils/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sys
77
import types
88
from collections.abc import Callable, Iterable, Mapping, Sequence
9+
from enum import Enum
910
from functools import cached_property, lru_cache
1011
from types import GenericAlias
1112
from typing import ( # noqa: UP035
@@ -1241,6 +1242,7 @@ def get_default_value_for_type(t: GenericType) -> Any:
12411242
frozenset,
12421243
tuple,
12431244
type(None),
1245+
Enum,
12441246
)
12451247

12461248

0 commit comments

Comments
 (0)