Skip to content

Commit

Permalink
[pylint] Fix / ignore warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jul 25, 2023
1 parent e2e9026 commit fef1d00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/podio/base_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 2 additions & 1 deletion python/podio/test_Frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit fef1d00

Please sign in to comment.