minor update

This commit is contained in:
lilydjwg 2022-02-13 14:36:13 +08:00
parent ea01b6d9ee
commit d8c26fa666
1 changed files with 3 additions and 2 deletions

View File

@ -148,7 +148,8 @@ def cmp() -> None:
print(json.dumps(differences, sort_keys=True, separators=(',', ':')))
elif args.quiet:
[print(diff['name']) for diff in differences]
for diff in differences:
print(diff['name'])
else:
from .lib.nicelogger import Colors, support_color
@ -178,6 +179,6 @@ def cmp() -> None:
}
for diff in differences:
style = diffstyles[diff.get('delta', 'equal')]
style = diffstyles[diff.get('delta', 'equal')] # type: ignore # mypy has issues with this line
print(f'{diff["name"]} {style["oldc"]}{diff["oldver"]}{c.normal} {style["symbol"]} {c.green}{diff["newver"]}{c.normal}')