mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
mypy is not very smart
This commit is contained in:
parent
4b6a5736ec
commit
281fdf6e57
1 changed files with 3 additions and 2 deletions
|
@ -109,12 +109,13 @@ def cmp() -> None:
|
|||
diff = {
|
||||
'name': name,
|
||||
'oldver': oldver,
|
||||
'newver': newver
|
||||
'newver': newver,
|
||||
'delta': 'equal' # hoping to satisfy mypy
|
||||
}
|
||||
|
||||
if oldver is not None and newver is not None:
|
||||
if oldver == newver:
|
||||
diff['delta'] = 'equal'
|
||||
pass # diff['delta'] = 'equal'
|
||||
|
||||
elif args.sort == "none":
|
||||
diff['delta'] = 'new' # assume it's a new version if we're not comparing
|
||||
|
|
Loading…
Add table
Reference in a new issue