From 281fdf6e57bce9cc5cc1b5eca2e638f56cd938fe Mon Sep 17 00:00:00 2001 From: Tom Rathborne Date: Fri, 11 Feb 2022 12:28:40 +0100 Subject: [PATCH] mypy is not very smart --- nvchecker/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nvchecker/tools.py b/nvchecker/tools.py index c391c36..c82aea8 100644 --- a/nvchecker/tools.py +++ b/nvchecker/tools.py @@ -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