@@ -106,9 +106,9 @@ def order_children_default(cls, children: Mapping) -> Iterator["DiffElement"]:
106106 def summary (self ) -> Mapping [Text , int ]:
107107 """Build a dict summary of this Diff and its child DiffElements."""
108108 summary = {
109- DiffSyncActions .CREATE . value : 0 ,
110- DiffSyncActions .UPDATE . value : 0 ,
111- DiffSyncActions .DELETE . value : 0 ,
109+ DiffSyncActions .CREATE : 0 ,
110+ DiffSyncActions .UPDATE : 0 ,
111+ DiffSyncActions .DELETE : 0 ,
112112 "no-change" : 0 ,
113113 }
114114 for child in self .get_children ():
@@ -221,11 +221,11 @@ def __len__(self):
221221 return total
222222
223223 @property
224- def action (self ) -> Optional [DiffSyncActions ]:
224+ def action (self ) -> Optional [Text ]:
225225 """Action, if any, that should be taken to remediate the diffs described by this element.
226226
227227 Returns:
228- DiffSyncActions ("create", "update", "delete", or None)
228+ str: DiffSyncActions ("create", "update", "delete", or None)
229229 """
230230 if self .source_attrs is not None and self .dest_attrs is None :
231231 return DiffSyncActions .CREATE
@@ -329,13 +329,13 @@ def has_diffs(self, include_children: bool = True) -> bool:
329329 def summary (self ) -> Mapping [Text , int ]:
330330 """Build a summary of this DiffElement and its children."""
331331 summary = {
332- DiffSyncActions .CREATE . value : 0 ,
333- DiffSyncActions .UPDATE . value : 0 ,
334- DiffSyncActions .DELETE . value : 0 ,
332+ DiffSyncActions .CREATE : 0 ,
333+ DiffSyncActions .UPDATE : 0 ,
334+ DiffSyncActions .DELETE : 0 ,
335335 "no-change" : 0 ,
336336 }
337337 if self .action :
338- summary [self .action . value ] += 1
338+ summary [self .action ] += 1
339339 else :
340340 summary ["no-change" ] += 1
341341 child_summary = self .child_diff .summary ()
0 commit comments