Skip to content

Commit 1f255e8

Browse files
authored
do not treat str bytes as list (#6034)
1 parent 2b7f211 commit 1f255e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ def _is_valid_type(events: Any) -> bool:
17431743
if events is None or _is_valid_type(events):
17441744
return events
17451745

1746-
if not isinstance(events, Sequence):
1746+
if not (isinstance(events, Sequence) and not isinstance(events, (str, bytes))):
17471747
events = [events]
17481748

17491749
try:

0 commit comments

Comments
 (0)