Skip to content

Commit

Permalink
Clarify invariant preconditions
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Maruseac <[email protected]>
  • Loading branch information
mihaimaruseac committed May 28, 2024
1 parent 86e06bf commit b89a6cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model_signing/manifest/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class ManifestItem(metaclass=ABCMeta):
def from_str(as_string: str) -> Self:
"""Parses a `ManifestItem` from a string representation.
All implementations must ensure the following round-trip properties:
All implementations must ensure the following round-trip properties
(for inputs that are valid):
1) `ManifestItem.from_str(str(si)) == si`
2) `str(ManifestItem.from_str(str)) == str`
Expand Down

0 comments on commit b89a6cc

Please sign in to comment.