Source code for webmentions.storage.adapters.file._model

from dataclasses import dataclass
from enum import Enum

from webmentions import ContentTextFormat


[docs] class ContentChangeType(str, Enum): """ Content change types. """ ADDED = "added" EDITED = "edited" DELETED = "deleted"
[docs] @dataclass(frozen=True) class ContentChange: """ Content change model. """ change_type: ContentChangeType path: str text: str | None text_format: ContentTextFormat | None