diff --git a/reflex/event.py b/reflex/event.py index 4e757a4997..8342062441 100644 --- a/reflex/event.py +++ b/reflex/event.py @@ -25,6 +25,7 @@ overload, ) +import typing_extensions from typing_extensions import ( Concatenate, ParamSpec, @@ -721,8 +722,9 @@ def redirect( replace: bool = False, ) -> EventSpec: ... + @overload -@typing_extensions.deprecated("`external` is deprecated use `is_external` instead") +@typing_extensions.deprecated("`external` is deprecated use `is_external` instead") def redirect( path: str | Var[str], is_external: Optional[bool] = None, @@ -730,6 +732,7 @@ def redirect( external: Optional[bool] = None, ) -> EventSpec: ... + def redirect( path: str | Var[str], is_external: Optional[bool] = None,