Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 6, 2023
1 parent 981d681 commit 75e2b09
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/uproot/interpretation/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,8 @@ def basket_array(
)
assert basket.byte_offsets is not None

if (
self._forth
and (isinstance(library, uproot.interpretation.library.Awkward)
or isinstance(library, uproot.interpretation.library.Pandas))
if self._forth and (
isinstance(library, (uproot.interpretation.library.Awkward, uproot.interpretation.library.Pandas))
):
output = self.basket_array_forth(
data,
Expand Down Expand Up @@ -405,10 +403,9 @@ def final_array(

if len(basket_arrays) == 0:
output = numpy.array([], dtype=self.numpy_dtype)
elif (
all(uproot._util.from_module(x, "awkward") for x in basket_arrays.values())
and isinstance(library, (Awkward, Pandas))
):
elif all(
uproot._util.from_module(x, "awkward") for x in basket_arrays.values()
) and isinstance(library, (Awkward, Pandas)):
awkward = uproot.extras.awkward()
output = awkward.concatenate(trimmed, mergebool=False, highlevel=False)
else:
Expand Down

0 comments on commit 75e2b09

Please sign in to comment.