Skip to content

Commit b473edf

Browse files
vepadulanodpiparo
authored andcommitted
[python] Ruff format
(cherry picked from commit bde5e5e)
1 parent cfc5ab2 commit b473edf

File tree

1 file changed

+3
-0
lines changed
  • bindings/pyroot/pythonizations/python/ROOT/_pythonization

1 file changed

+3
-0
lines changed

bindings/pyroot/pythonizations/python/ROOT/_pythonization/_rntuple.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
def _REntry_GetPtr(self, key):
1616
raise RuntimeError("GetPtr is not supported in Python, use indexing")
1717

18+
1819
def _try_getptr(entry, fieldType, key):
1920
rentry_getptr_typeerrors = []
2021
try:
@@ -35,6 +36,7 @@ def _try_getptr(entry, fieldType, key):
3536
# particular when it tries to instantiate the function template)
3637
rentry_getptr_typeerrors.append(e)
3738
import ROOT
39+
3840
alt_field_type_names = ROOT.TClassTable.GetClassAlternativeNames(fieldType)
3941
for alt_field_type_name in alt_field_type_names:
4042
try:
@@ -49,6 +51,7 @@ def _try_getptr(entry, fieldType, key):
4951

5052
raise TypeError(err_msg)
5153

54+
5255
def _REntry_CallGetPtr(self, key):
5356
# key can be either a RFieldToken already or a string. In the latter case, get a token to use it twice.
5457
if not hasattr(type(key), "__cpp_name__") or type(key).__cpp_name__ != "ROOT::RFieldToken":

0 commit comments

Comments
 (0)