Skip to content

Commit def194a

Browse files
committed
New API: Add a TODO comments
Signed-off-by: Martin Vrachev <[email protected]>
1 parent 5d3e766 commit def194a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tuf/api/metadata.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ def update(
561561
hashes: Optional[Mapping[str, Any]] = None,
562562
) -> None:
563563
"""Assigns passed info about snapshot metadata to meta dict. """
564+
# TODO: Consider renaming this function:
565+
# see: https://github.com/theupdateframework/tuf/issues/1230
564566
self.meta["snapshot.json"] = MetadataInfo(version, length, hashes)
565567

566568

@@ -619,6 +621,8 @@ def update(
619621
hashes: Optional[Mapping[str, Any]] = None,
620622
) -> None:
621623
"""Assigns passed (delegated) targets role info to meta dict. """
624+
# TODO: Consider renaming this function:
625+
# see: https://github.com/theupdateframework/tuf/issues/1230
622626
metadata_fn = f"{rolename}.json"
623627
self.meta[metadata_fn] = MetadataInfo(version, length, hashes)
624628

@@ -769,6 +773,8 @@ def to_dict(self) -> Dict[str, Any]:
769773
# Modification.
770774
def update(self, filename: str, fileinfo: Mapping[str, Any]) -> None:
771775
"""Assigns passed target file info to meta dict. """
776+
# TODO: Consider renaming this function:
777+
# see: https://github.com/theupdateframework/tuf/issues/1230
772778
self.targets[filename] = TargetInfo(
773779
fileinfo["length"], fileinfo["hashes"], fileinfo.get("custom")
774780
)

0 commit comments

Comments
 (0)