Skip to content

Commit

Permalink
get_substates() already returns a set
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-bartscher committed Dec 14, 2024
1 parent 604e96a commit 2f52cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ def get_all_substate_classes(cls) -> set[Type[BaseState]]:
Returns:
The set of all substate classes.
"""
substates = set(cls.get_substates())
substates = cls.get_substates()
for substate in cls.get_substates():
substates.update(substate.get_all_substate_classes())
return substates
Expand Down

0 comments on commit 2f52cd7

Please sign in to comment.