Skip to content

Commit

Permalink
Metadata API: Fix DelegatedRole.from_dict() return type
Browse files Browse the repository at this point in the history
Also mark the argument as Dict as we will pop() it.

Signed-off-by: Jussi Kukkonen <[email protected]>
  • Loading branch information
Jussi Kukkonen committed May 17, 2021
1 parent 0c70e6f commit 98c6f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuf/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def __init__(
self.path_hash_prefixes = path_hash_prefixes

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

0 comments on commit 98c6f43

Please sign in to comment.