Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tuf/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,22 +315,26 @@ class Signed:
are common for all TUF metadata types (roles).

Attributes:
_type: The metadata type string.
_type: The metadata type string. Also available without underscore.
version: The metadata version number.
spec_version: The TUF specification version number (semver) the
metadata format adheres to.
expires: The metadata expiration datetime object.
unrecognized_fields: Dictionary of all unrecognized fields.

"""

# Signed implementations are expected to override this
_signed_type = None

# _type and type are identical: 1st replicates file format, 2nd passes lint
@property
def _type(self):
return self._signed_type

@property
def type(self):
return self._signed_type

# NOTE: Signed is a stupid name, because this might not be signed yet, but
# we keep it to match spec terminology (I often refer to this as "payload",
# or "inner metadata")
Expand Down