Skip to content

Commit 2ace345

Browse files
jkuLukas Puehringer
authored andcommitted
metadata: Rename _Delegator to _DelegatorMixin
Make it clearer that this is not part of the main inheritance path. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent a69ddf1 commit 2ace345

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tuf/api/metadata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def to_dict(self) -> Dict[str, Any]:
634634
}
635635

636636

637-
class _Delegator(metaclass=abc.ABCMeta):
637+
class _DelegatorMixin(metaclass=abc.ABCMeta):
638638
"""Class that implements verify_delegate() for Root and Targets"""
639639

640640
@abc.abstractmethod
@@ -710,7 +710,7 @@ def verify_delegate(
710710
)
711711

712712

713-
class Root(Signed, _Delegator):
713+
class Root(Signed, _DelegatorMixin):
714714
"""A container for the signed part of root metadata.
715715
716716
Parameters listed below are also instance attributes.
@@ -1784,7 +1784,7 @@ def get_prefixed_paths(self) -> List[str]:
17841784
return paths
17851785

17861786

1787-
class Targets(Signed, _Delegator):
1787+
class Targets(Signed, _DelegatorMixin):
17881788
"""A container for the signed part of targets metadata.
17891789
17901790
Targets contains verifying information about target files and also

0 commit comments

Comments
 (0)