From 2e9b3bf7762c74cb211a4cf38e6f5e035aa602a1 Mon Sep 17 00:00:00 2001 From: James Garner Date: Wed, 18 Sep 2024 10:43:54 +1200 Subject: [PATCH] Add pyright ignore directive --- tests/unit/test_snap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_snap.py b/tests/unit/test_snap.py index a6cebc2d..7caaab4f 100644 --- a/tests/unit/test_snap.py +++ b/tests/unit/test_snap.py @@ -932,7 +932,7 @@ def test_snap_set_untyped(self, mock_subprocess): def test_snap_unset(self, mock_subprocess: MagicMock): foo = snap.Snap("foo", snap.SnapState.Present, "stable", "1", "classic") key: str = "test_key" - self.assertEqual(foo.unset(key), "") + self.assertEqual(foo.unset(key), "") # pyright: ignore[reportUnknownMemberType] mock_subprocess.assert_called_with( ["snap", "unset", "foo", key], universal_newlines=True,