python-tuf/tuf/ngclient/_internal
Jussi Kukkonen e1d15887a8 ngclient: Remove "Optional" from helper props
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>
2022-12-27 16:56:32 +02:00
..
__init__.py ngclient: Add new client code 2021-07-05 10:45:19 +03:00
requests_fetcher.py Fix pydocstyle D401: first line should be in imperative mood 2022-12-18 13:13:35 +01:00
trusted_metadata_set.py ngclient: Remove "Optional" from helper props 2022-12-27 16:56:32 +02:00