17 lines
461 B
Python
17 lines
461 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from dataclasses import dataclass
|
||
|
|
|
||
|
|
|
||
|
|
@dataclass
|
||
|
|
class OperationRecord:
|
||
|
|
summary: str
|
||
|
|
detail: str
|
||
|
|
target_kind: str | None = None
|
||
|
|
target_id: int | None = None
|
||
|
|
target_logical_id: int | None = None
|
||
|
|
pick_position: tuple[float, float, float] | None = None
|
||
|
|
before_snapshot: dict[int, object] | None = None
|
||
|
|
after_snapshot: dict[int, object] | None = None
|
||
|
|
diff_stats: dict[str, object] | None = None
|