Skip to content

Commit

Permalink
transparency: docstring
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Jul 12, 2023
1 parent 107ac71 commit 4f39737
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sigstore/transparency.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ class LogEntry:
"""

def __post_init__(self) -> None:
"""
Invariant preservation.
"""
if self.inclusion_proof is None and self.inclusion_promise is None:
raise ValueError("Log entry must have either inclusion proof or promise")

Expand Down

0 comments on commit 4f39737

Please sign in to comment.