Skip to content

Commit 2e3eb40

Browse files
author
Jussi Kukkonen
committed
Metadata API: Fix DelegatedRole.from_dict() return type
Also mark the argument as Dict as we will pop() it. Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent 510f224 commit 2e3eb40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tuf/api/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ def __init__(
815815
self.path_hash_prefixes = path_hash_prefixes
816816

817817
@classmethod
818-
def from_dict(cls, role_dict: Mapping[str, Any]) -> "Role":
818+
def from_dict(cls, role_dict: Dict[str, Any]) -> "DelegatedRole":
819819
"""Creates DelegatedRole object from its dict representation."""
820820
name = role_dict.pop("name")
821821
keyids = role_dict.pop("keyids")

0 commit comments

Comments
 (0)