Skip to content

Commit 6f6bca4

Browse files
committed
ruff
1 parent 93f9ad8 commit 6f6bca4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ufl/tensors.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ def sub(e, *indices):
8484
and all(sub(e, 0, 0) == sub(e0, 0, 0) for e in expressions[1:])
8585
):
8686
indices = [sub(e, 0, 1).indices() for e in expressions]
87-
if all(i[0] == k and all(isinstance(subindex, Index) for subindex in i[1:])
88-
for k, i in enumerate(indices)):
87+
if all(
88+
i[0] == k and all(isinstance(subindex, Index) for subindex in i[1:])
89+
for k, i in enumerate(indices)
90+
):
8991
return sub(e0, 0, 0)
9092

9193
# Construct a new instance to be initialised

0 commit comments

Comments
 (0)