anki/qt/aqt/operations/__init__.py

17 lines
465 B
Python
Raw Normal View History

# 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