Skip to content

Commit 98c6f43

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 0c70e6f commit 98c6f43

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
@@ -791,7 +791,7 @@ def __init__(
791791
self.path_hash_prefixes = path_hash_prefixes
792792

793793
@classmethod
794-
def from_dict(cls, role_dict: Mapping[str, Any]) -> "Role":
794+
def from_dict(cls, role_dict: Dict[str, Any]) -> "DelegatedRole":
795795
"""Creates DelegatedRole object from its dict representation."""
796796
name = role_dict.pop("name")
797797
keyids = role_dict.pop("keyids")

0 commit comments

Comments
 (0)