python-tuf/tuf
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
..
api Merge pull request #2230 from fridex/pydocstyle-imperative-mood 2022-12-27 11:47:46 +02:00
ngclient ngclient: Remove "Optional" from helper props 2022-12-27 16:56:32 +02:00
repository repository: Improve dosctrings 2022-12-17 23:09:11 +02:00
__init__.py python-tuf 2.0.0 2022-08-16 09:36:40 +02:00
py.typed Advertize type annotations with py.typed 2021-11-11 22:34:22 +02:00