Skip to content

Commit ea63a4a

Browse files
committed
Clarify invariant preconditions
Signed-off-by: Mihai Maruseac <[email protected]>
1 parent 92a8f7e commit ea63a4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

model_signing/manifest/manifest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class ManifestItem(metaclass=ABCMeta):
6060
def from_str(as_string: str) -> Self:
6161
"""Parses a `ManifestItem` from a string representation.
6262
63-
All implementations must ensure the following round-trip properties:
63+
All implementations must ensure the following round-trip properties
64+
(for inputs that are valid):
6465
6566
1) `ManifestItem.from_str(str(si)) == si`
6667
2) `str(ManifestItem.from_str(str)) == str`

0 commit comments

Comments
 (0)