Skip to content

Commit 7499f20

Browse files
committed
Format
1 parent 91604f3 commit 7499f20

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

accelforge/frontend/workload.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,7 @@ class Adapter(EvalableModel):
830830
An adapter between or before (in the case of shared inputs) two or more
831831
Einsums.
832832
"""
833+
833834
name: EvalsTo[str]
834835

835836

@@ -962,10 +963,14 @@ def _canonicalize_einsums_and_adapters(self, data):
962963
and fills in the other.
963964
"""
964965
has_einsums = "einsums" in data and len(data["einsums"]) > 0
965-
has_einsums_and_adapters = "einsums_and_adapters" in data and len(data["einsums_and_adapters"]) > 0
966+
has_einsums_and_adapters = (
967+
"einsums_and_adapters" in data and len(data["einsums_and_adapters"]) > 0
968+
)
966969

967970
if has_einsums and has_einsums_and_adapters:
968-
raise EvaluationError("Please use only one of keywords einsums or einsums_and_adapters")
971+
raise EvaluationError(
972+
"Please use only one of keywords einsums or einsums_and_adapters"
973+
)
969974

970975
def is_einsum(d):
971976
return not hasattr(d, "tag") or d.tag == "!Einsum"

0 commit comments

Comments
 (0)