@@ -391,15 +391,15 @@ def __init__(
391
391
@classmethod
392
392
def from_dict (cls , root_dict : Mapping [str , Any ]) -> 'Root' :
393
393
"""Creates Root object from its dict representation. """
394
- common_args = super () ._common_fields_from_dict (root_dict )
394
+ common_args = cls ._common_fields_from_dict (root_dict )
395
395
consistent_snapshot = root_dict .pop ('consistent_snapshot' )
396
396
keys = root_dict .pop ('keys' )
397
397
roles = root_dict .pop ('roles' )
398
398
return cls (* common_args , consistent_snapshot , keys , roles )
399
399
400
400
def to_dict (self ) -> Dict [str , Any ]:
401
401
"""Returns the dict representation of self. """
402
- root_dict = super () ._common_fields_to_dict ()
402
+ root_dict = self ._common_fields_to_dict ()
403
403
root_dict .update ({
404
404
'consistent_snapshot' : self .consistent_snapshot ,
405
405
'keys' : self .keys ,
@@ -456,13 +456,13 @@ def __init__(
456
456
@classmethod
457
457
def from_dict (cls , timestamp_dict : Mapping [str , Any ]) -> 'Timestamp' :
458
458
"""Creates Timestamp object from its dict representation. """
459
- common_args = super () ._common_fields_from_dict (timestamp_dict )
459
+ common_args = cls ._common_fields_from_dict (timestamp_dict )
460
460
meta = timestamp_dict .pop ('meta' )
461
461
return cls (* common_args , meta )
462
462
463
463
def to_dict (self ) -> Dict [str , Any ]:
464
464
"""Returns the dict representation of self. """
465
- timestamp_dict = super () ._common_fields_to_dict ()
465
+ timestamp_dict = self ._common_fields_to_dict ()
466
466
timestamp_dict .update ({
467
467
'meta' : self .meta
468
468
})
@@ -515,13 +515,13 @@ def __init__(
515
515
@classmethod
516
516
def from_dict (cls , snapshot_dict : Mapping [str , Any ]) -> 'Snapshot' :
517
517
"""Creates Snapshot object from its dict representation. """
518
- common_args = super () ._common_fields_from_dict (snapshot_dict )
518
+ common_args = cls ._common_fields_from_dict (snapshot_dict )
519
519
meta = snapshot_dict .pop ('meta' )
520
520
return cls (* common_args , meta )
521
521
522
522
def to_dict (self ) -> Dict [str , Any ]:
523
523
"""Returns the dict representation of self. """
524
- snapshot_dict = super () ._common_fields_to_dict ()
524
+ snapshot_dict = self ._common_fields_to_dict ()
525
525
snapshot_dict .update ({
526
526
'meta' : self .meta
527
527
})
@@ -612,14 +612,14 @@ def __init__(
612
612
@classmethod
613
613
def from_dict (cls , targets_dict : Mapping [str , Any ]) -> 'Targets' :
614
614
"""Creates Targets object from its dict representation. """
615
- common_args = super () ._common_fields_from_dict (targets_dict )
615
+ common_args = cls ._common_fields_from_dict (targets_dict )
616
616
targets = targets_dict .pop ('targets' )
617
617
delegations = targets_dict .pop ('delegations' )
618
618
return cls (* common_args , targets , delegations )
619
619
620
620
def to_dict (self ) -> Dict [str , Any ]:
621
621
"""Returns the dict representation of self. """
622
- targets_dict = super () ._common_fields_to_dict ()
622
+ targets_dict = self ._common_fields_to_dict ()
623
623
targets_dict .update ({
624
624
'targets' : self .targets ,
625
625
'delegations' : self .delegations ,
0 commit comments