From 00608f7ffac4fee0340375f999eacb85b3419fcf Mon Sep 17 00:00:00 2001 From: tim-haselhoff Date: Fri, 19 Sep 2025 11:55:03 +0200 Subject: [PATCH] add Enum to immutable types --- reflex/utils/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reflex/utils/types.py b/reflex/utils/types.py index e62e9902eb0..b811e7184fc 100644 --- a/reflex/utils/types.py +++ b/reflex/utils/types.py @@ -6,6 +6,7 @@ import sys import types from collections.abc import Callable, Iterable, Mapping, Sequence +from enum import Enum from functools import cached_property, lru_cache from types import GenericAlias from typing import ( # noqa: UP035 @@ -1241,6 +1242,7 @@ def get_default_value_for_type(t: GenericType) -> Any: frozenset, tuple, type(None), + Enum, )