Skip to content

Commit

Permalink
Update reflex/event.py
Browse files Browse the repository at this point in the history
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
  • Loading branch information
masenf and adhami3310 authored Dec 13, 2024
1 parent acc6b09 commit 3b8c6fb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions reflex/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,22 @@ def fn():
)


@overload
def redirect(
path: str | Var[str],
is_external: Optional[bool] = None,
replace: bool = False,
) -> EventSpec: ...

@overload
@typing_extensions.deprecated("`external` is deprecated use `is_external` instead")
def redirect(
path: str | Var[str],
is_external: Optional[bool] = None,
replace: bool = False,
external: Optional[bool] = None,
) -> EventSpec: ...

def redirect(
path: str | Var[str],
is_external: Optional[bool] = None,
Expand Down

0 comments on commit 3b8c6fb

Please sign in to comment.