From 1b4bd50af71c7e06166a7d7d285e341e606c3ee4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 16:43:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/coffea/nanoevents/factory.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/coffea/nanoevents/factory.py b/src/coffea/nanoevents/factory.py index c43b182ad..cc0eff0ad 100644 --- a/src/coffea/nanoevents/factory.py +++ b/src/coffea/nanoevents/factory.py @@ -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 @@ -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()