From 29da5da4bbe2f1626785bce5320079b6670d7e5e Mon Sep 17 00:00:00 2001 From: Martin Vrachev Date: Mon, 8 Nov 2021 19:30:49 +0200 Subject: [PATCH] Metadata API: make root roles Mapping Mark roles as a Mapping to indicate that users should not add or remove values from the dictionary during the lifetime of the Root object) Signed-off-by: Martin Vrachev --- tuf/api/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuf/api/metadata.py b/tuf/api/metadata.py index 25f14fe772..58c7f0fd2d 100644 --- a/tuf/api/metadata.py +++ b/tuf/api/metadata.py @@ -722,7 +722,7 @@ def __init__( spec_version: str, expires: datetime, keys: Dict[str, Key], - roles: Dict[str, Role], + roles: Mapping[str, Role], consistent_snapshot: Optional[bool] = None, unrecognized_fields: Optional[Mapping[str, Any]] = None, ):