Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 3, 2023
1 parent b8fc7fe commit 1b4bd50
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/coffea/nanoevents/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ def __call__(self, form):
},
"form_key": None,
}
return awkward.forms.form.from_dict(self.schemaclass(lform, self.version).form), self
return (
awkward.forms.form.from_dict(self.schemaclass(lform, self.version).form),
self,
)

def create_column_mapping(self, tree, keys, start, stop, interp_options):
from functools import partial
Expand All @@ -177,7 +180,9 @@ def create_column_mapping(self, tree, keys, start, stop, interp_options):
class TranslateBufferKeys:
def __getitem__(this, key):
form_key, attribute = self.parse_buffer_key(key)
return mapping[buffer_key(form_key=form_key, attribute=attribute, form=None)]
return mapping[
buffer_key(form_key=form_key, attribute=attribute, form=None)
]

return TranslateBufferKeys()

Expand Down

0 comments on commit 1b4bd50

Please sign in to comment.