just cast the type
This commit is contained in:
parent
f80b645ba1
commit
839742c985
@ -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]:
|
||||
|
@ -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,
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user