Skip to content

Commit

Permalink
Fixup typing_extensions import and ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf committed Dec 13, 2024
1 parent 9ed4ba2 commit 62df1be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reflex/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
overload,
)

import typing_extensions
from typing_extensions import (
Concatenate,
ParamSpec,
Expand Down Expand Up @@ -721,15 +722,17 @@ 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,
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 62df1be

Please sign in to comment.