from __future__ import annotations from dataclasses import asdict, dataclass from datetime import datetime from typing import Any @dataclass class SourceListEntry: source: str created_at: datetime | None line: str def to_dict(self) -> dict[str, Any]: return asdict(self) @dataclass class SourceReportEntry: source: str created_at: datetime | None block: str def to_dict(self) -> dict[str, Any]: return asdict(self)