mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
25 lines
580 B
Python
25 lines
580 B
Python
"""PaperForge setup package — modular setup components."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass, field
|
|
from typing import Any
|
|
|
|
|
|
@dataclass
|
|
class SetupStepResult:
|
|
"""Result of a single setup step."""
|
|
|
|
step: str
|
|
ok: bool = True
|
|
message: str = ""
|
|
error: str | None = None
|
|
details: dict[str, Any] = field(default_factory=dict)
|
|
|
|
def to_dict(self) -> dict[str, Any]:
|
|
return {
|
|
"step": self.step,
|
|
"ok": self.ok,
|
|
"message": self.message,
|
|
"error": self.error,
|
|
}
|