2021-04-05 05:43:09 +02:00
|
|
|
# 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 `handled_by` field can be used by screens to ignore change
|
|
|
|
events they initiated themselves, if they have already made
|
|
|
|
the required changes."""
|
|
|
|
|
|
|
|
handled_by: Optional[object] = None
|