Skip to content

Commit

Permalink
Add pyright ignore directive
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garner-canonical committed Sep 17, 2024
1 parent 2a41ea3 commit 2e9b3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2e9b3bf

Please sign in to comment.