Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1336
(An Untitled Masterwork)
Active
Public
Actions
Authored by
vlorentz
on Apr 11 2022, 10:29 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
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
created this paste.
Apr 11 2022, 10:29 AM
2022-04-11 10:29:37 (UTC+2)
vlorentz
edited the content of this paste.
(Show Details)
Log In to Comment