Skip to content

Commit

Permalink
models: add type annotation (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Jul 7, 2024
1 parent 2015f1a commit 2b82190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sigstore/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _to_dict_rekor(self) -> dict[str, Any]:
)

# Fill in the appropriate kind
body_entry = TypeAdapter(ProposedEntry).validate_json(
body_entry: ProposedEntry = TypeAdapter(ProposedEntry).validate_json(
tlog_entry.canonicalized_body
)
if not isinstance(body_entry, (Hashedrekord, Dsse)):
Expand Down

0 comments on commit 2b82190

Please sign in to comment.