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 Jan 21, 2025
1 parent 525a494 commit e76182b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/awkward/_nplikes/virtual.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ def strides(self) -> tuple[ShapeItem, ...]:
@property
def T(self):
transposed = type(self)(
self._nplike, self._shape[::-1], self._dtype, lambda: self._generator().T, self._form_key
self._nplike,
self._shape[::-1],
self._dtype,
lambda: self._generator().T,
self._form_key,
)
if self.is_materialized:
transposed._array = self._array.T
Expand All @@ -136,7 +140,11 @@ def view(self, dtype: DTypeLike) -> Self:
else:
shape = self._shape
return type(self)(
self._nplike, shape, dtype, lambda: self._generator().view(dtype), self._form_key
self._nplike,
shape,
dtype,
lambda: self._generator().view(dtype),
self._form_key,
)

@property
Expand Down

0 comments on commit e76182b

Please sign in to comment.