mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
The properties in TrustedMetadataSet are a bit difficult to use with static typing since they return Optional but in many cases we know the "None"-case is impossible. Remove None from annotation: the idea is that calling the property getter too early is a programming error: it will result in KeyError which is consistent: * trusted_set["timestamp"] raises KeyError if timestamp is not set * trusted_set.timestamp raises KeyError if timestamp is not set Signed-off-by: Jussi Kukkonen <jkukkonen@google.com> |
||
|---|---|---|
| .. | ||
| api | ||
| ngclient | ||
| repository | ||
| __init__.py | ||
| py.typed | ||