Page MenuHomeSoftware Heritage
Paste P1336

(An Untitled Masterwork)
ActivePublic

Authored by vlorentz on Apr 11 2022, 10:29 AM.
class SupportsObjectType(Protocol):
object_type: str
_L: List[SupportsObjectType] = [
Person,
Timestamp,
TimestampWithTimezone,
Origin,
OriginVisit,
OriginVisitStatus,
Snapshot,
SnapshotBranch,
Release,
Revision,
Directory,
DirectoryEntry,
Content,
SkippedContent,
MetadataAuthority,
MetadataFetcher,
RawExtrinsicMetadata,
ExtID,
]
SWH_MODEL_OBJECT_TYPES: Dict[str, Type[BaseModel]] = {
cls.object_type: cls
for cls in _L
if issubclass(cls, BaseModel)
}

Event Timeline

vlorentz edited the content of this paste. (Show Details)