just cast the type

This commit is contained in:
Elijah 2025-01-14 13:55:52 +00:00
parent f80b645ba1
commit 839742c985
2 changed files with 2 additions and 2 deletions

View File

@ -1591,7 +1591,7 @@ def get_handler_args(
def fix_events(
events: list[IndividualEventType] | None,
events: list[EventSpec | EventHandler] | None,
token: str,
router_data: dict[str, Any] | None = None,
) -> list[Event]:

View File

@ -2432,7 +2432,7 @@ class OnLoadInternalState(State):
self.is_hydrated = False
return [
*fix_events(
load_events,
cast(list[EventSpec | EventHandler], load_events),
self.router.session.client_token,
router_data=self.router_data,
),