Skip to content

Commit

Permalink
Update python/podio/pythonizations/collection_subscript.py
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Madlener <thomas.madlener@desy.de>
  • Loading branch information
m-fila and tmadlener committed Apr 24, 2024
1 parent f724f4f commit a489371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/podio/pythonizations/collection_subscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ def get_item(self, i):
except cppyy.gbl.std.out_of_range:
raise IndexError("collection index out of range") from None

if issubclass(class_, cppyy.gbl.podio.CollectionBase) and hasattr(class_, "at"):
if issubclass(class_, cppyy.gbl.podio.CollectionBase):
class_.__getitem__ = get_item

0 comments on commit a489371

Please sign in to comment.