From 62df1beaf821d4654a0d2eb58cb88b6be90fbe56 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Fri, 13 Dec 2024 11:04:33 -0800 Subject: [PATCH] Fixup typing_extensions import and ruff --- reflex/event.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,