a18bb2af12
The backend knows exactly which op has executed, and it saves us having to re-implement this logic on each client. Fixes the browser table refreshing when toggling decks.
17 lines
459 B
Python
17 lines
459 B
Python
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Optional
|
|
|
|
|
|
@dataclass
|
|
class OpMeta:
|
|
"""Metadata associated with an operation.
|
|
|
|
The `handler` field can be used by screens to ignore change
|
|
events they initiated themselves, if they have already made
|
|
the required changes."""
|
|
|
|
handler: Optional[object] = None
|