Skip to content

Commit 0931c59

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 865db7a commit 0931c59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

thunder/core/proxies.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,10 +2068,10 @@ def type_string(self) -> str:
20682068
type_str = base_str
20692069

20702070
if self._tensors:
2071-
if (tensor_attr_names := getattr(self, "_tensor_attr_names", [])):
2072-
tensor_attr_type_str = ", ".join([
2073-
f"{name}: {t.type_string()}" for name, t in zip(tensor_attr_names, self._tensors)
2074-
])
2071+
if tensor_attr_names := getattr(self, "_tensor_attr_names", []):
2072+
tensor_attr_type_str = ", ".join(
2073+
[f"{name}: {t.type_string()}" for name, t in zip(tensor_attr_names, self._tensors)]
2074+
)
20752075
else:
20762076
tensor_attr_type_str = ", ".join([t.type_string() for t in self._tensors])
20772077
type_str = type_str + f" ({tensor_attr_type_str})"

0 commit comments

Comments
 (0)