Skip to content

Commit ea90dd7

Browse files
committed
comment: AI suggestions
1 parent 78342d0 commit ea90dd7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

python/private/pypi/hub_builder.bzl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,14 @@ def _add_extra_aliases(self, extra_hub_aliases):
210210
def _diff_dict(first, second):
211211
"""A simple utility to shallow compare dictionaries.
212212
213-
to return a list of (key, value of first, value of second)
214-
"""
215-
keys = {}
213+
Args:
214+
first: The first dictionary to compare.
215+
second: The second dictionary to compare.
216216
217+
Returns:
218+
A dictionary containing the differences, with keys "common", "different",
219+
"extra", and "missing", or None if the dictionaries are identical.
220+
"""
217221
missing = {}
218222
extra = {
219223
key: value
@@ -224,7 +228,6 @@ def _diff_dict(first, second):
224228
different = {}
225229

226230
for key, value in first.items():
227-
keys[key] = None
228231
if key not in second:
229232
missing[key] = value
230233
elif value == second[key]:

0 commit comments

Comments
 (0)