@@ -607,7 +607,9 @@ def _merge(self, other: "TensorHolder") -> "TensorHolder":
607607 )
608608
609609 if self ._lower != other ._lower :
610- raise ValueError (f"Lower flags do not match: { self ._lower } != { other ._lower } " )
610+ raise ValueError (
611+ f"Lower flags do not match: { self ._lower } != { other ._lower } "
612+ )
611613
612614 new = type (self )(
613615 tensors = self .tensors + other .tensors ,
@@ -772,7 +774,9 @@ def _consolidate_reservations(self) -> None:
772774 found = False
773775 for n in new_nodes [::- 1 ]:
774776 if isinstance (n , Reservation ) and n .resource == node .resource :
775- n .purposes .extend (n2 for n2 in node .purposes if n2 not in n .purposes )
777+ n .purposes .extend (
778+ n2 for n2 in node .purposes if n2 not in n .purposes
779+ )
776780 found = True
777781 break
778782 if isinstance (n , Loop ):
@@ -1109,8 +1113,16 @@ def _pop_loop_group(groups: list[list[MappingNode]]) -> list[MappingNode]:
11091113 f"Warning. Matching loops { l } and { l2 } . Need rank variable translation here."
11101114 )
11111115
1112- my_rv = l .rank_variable if isinstance (l .rank_variable , set ) else set ([l .rank_variable ])
1113- other_rv = l2 .rank_variable if isinstance (l2 .rank_variable , set ) else set ([l2 .rank_variable ])
1116+ my_rv = (
1117+ l .rank_variable
1118+ if isinstance (l .rank_variable , set )
1119+ else set ([l .rank_variable ])
1120+ )
1121+ other_rv = (
1122+ l2 .rank_variable
1123+ if isinstance (l2 .rank_variable , set )
1124+ else set ([l2 .rank_variable ])
1125+ )
11141126 if switched :
11151127 my_rv , other_rv = other_rv , my_rv
11161128
0 commit comments