from __future__ import annotations

from dataclasses import dataclass

from typing_extensions import TYPE_CHECKING

if TYPE_CHECKING:  # pragma: no cover
    from lona.view import View


@dataclass
class ViewEvent:
    name: str
    data: dict
    view_classes: list[type[View]]
