Skip to content

Commit

Permalink
Typing.
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Russell <caroline@appthreat.dev>
  • Loading branch information
cerrussell committed Oct 14, 2024
1 parent 65b5f1e commit 481addd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_json_diff/lib/custom_diff_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def __init__(self, comp: Dict, options: Options):
self._hashes = Array(comp.get("hashes", []))
self._licenses = Array(comp.get("licenses", []))
self.name = comp.get("name", "")
self.original_data = {} # deprecated
self.original_data: Dict = {} # deprecated
self._properties = Array(comp.get("properties", []))
self.publisher = comp.get("publisher", "")
self.purl = comp.get("purl", "")
Expand Down
2 changes: 1 addition & 1 deletion custom_json_diff/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def recursive_remove_empty(d: Dict) -> Dict:
elif i:
flist.append(i)
if flist:
filtered[k] = flist
filtered[k] = flist # type: ignore
else:
filtered[k] = v
return filtered
Expand Down

0 comments on commit 481addd

Please sign in to comment.