From fef1d004612aebcc0b7bea9228e8b779d2a4ec76 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Thu, 20 Jul 2023 15:48:10 +0200 Subject: [PATCH] [pylint] Fix / ignore warnings --- python/podio/base_writer.py | 1 + python/podio/test_Frame.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/podio/base_writer.py b/python/podio/base_writer.py index 881c9fa52..6f2b5777a 100644 --- a/python/podio/base_writer.py +++ b/python/podio/base_writer.py @@ -21,4 +21,5 @@ def write_frame(self, frame, category, collections=None): collections (optional, default=None): The subset of collections to write. If None, all collections are written """ + # pylint: disable-next=protected-access self._writer.writeFrame(frame._frame, category, collections or frame.collections) diff --git a/python/podio/test_Frame.py b/python/podio/test_Frame.py index 3d50073c6..c09143056 100644 --- a/python/podio/test_Frame.py +++ b/python/podio/test_Frame.py @@ -37,7 +37,8 @@ def test_frame_invalid_access(self): _ = frame.get_parameter('NonExistantParameter') with self.assertRaises(ValueError): - _ = frame.put(list(), "invalid_collection_type") + collection = [1, 2, 4] + _ = frame.put(collection, "invalid_collection_type") def test_frame_put_collection(self): """Check that putting a collection works as expected"""