Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor committed Dec 12, 2024
1 parent 9c89e98 commit 1da65e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reflex/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ def _get_hooks_internal(self) -> dict[str, None]:
**self._get_special_hooks(),
}

def _get_added_hooks(self) -> dict[str, VarData]:
def _get_added_hooks(self) -> dict[str, VarData | None]:
"""Get the hooks added via `add_hooks` method.
Returns:
Expand All @@ -1552,7 +1552,7 @@ def extract_var_hooks(hook: Var):
if isinstance(hook, Var):
extract_var_hooks(hook)
else:
code[hook] = VarData()
code[hook] = None

return code

Expand Down

0 comments on commit 1da65e6

Please sign in to comment.