From 5b9ab96994041ca250ea5c559d7f47376d1ef72c Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Fri, 22 Sep 2023 13:55:51 +1200 Subject: [PATCH] Ignore type warning. This is a dict(str, str) but it's not worth defining that and making the decorator call messy in this specific test case. --- test/test_jujuversion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_jujuversion.py b/test/test_jujuversion.py index a22cb050d..25692622e 100755 --- a/test/test_jujuversion.py +++ b/test/test_jujuversion.py @@ -41,7 +41,7 @@ def test_parsing(self): self.assertEqual(v.patch, patch) self.assertEqual(v.build, build) - @unittest.mock.patch('os.environ', new={}) + @unittest.mock.patch('os.environ', new={}) # type: ignore def test_from_environ(self): # JUJU_VERSION is not set v = ops.JujuVersion.from_environ()