Skip to content

Commit

Permalink
conditionally log unused annotations (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre authored Feb 26, 2022
1 parent c6357a6 commit 837050b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/pip_install/extract_wheels/lib/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ def collect(self, requirements: List[str]) -> Dict[str, Annotation]:
if pkg in unused:
collection.update({pkg: unused.pop(pkg)})

logging.warning("Unused annotations: {}".format(sorted(list(unused.keys()))))
if unused:
logging.warning(
"Unused annotations: {}".format(sorted(list(unused.keys())))
)

return collection

Expand Down

0 comments on commit 837050b

Please sign in to comment.