This commit is contained in:
Khaleel Al-Adhami 2024-10-29 13:53:57 -07:00
parent 76e6aafe70
commit 530c0f9283

View File

@ -1598,7 +1598,7 @@ if sys.version_info >= (3, 10):
def wrapper(func: Callable[Concatenate[Any, P], T]) -> EventCallback[P, T]: def wrapper(func: Callable[Concatenate[Any, P], T]) -> EventCallback[P, T]:
if background is True: if background is True:
return background_event_decorator(func, __interal_reflex_call=True) # type: ignore return background_event_decorator(func, __internal_reflex_call=True) # type: ignore
return func # type: ignore return func # type: ignore
if func is not None: if func is not None:
@ -1639,7 +1639,7 @@ else:
def wrapper(func: Callable[P, T]) -> Callable[P, T]: def wrapper(func: Callable[P, T]) -> Callable[P, T]:
if background is True: if background is True:
return background_event_decorator(func, __interal_reflex_call=True) # type: ignore return background_event_decorator(func, __internal_reflex_call=True) # type: ignore
return func # type: ignore return func # type: ignore
if func is not None: if func is not None: