Skip to content

Commit c886be0

Browse files
fix old python
1 parent 6000d3b commit c886be0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sqlmesh/core/context_diff.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,11 @@ def format_diff(attribute: str) -> t.Optional[Syntax]:
358358
if previous == current:
359359
return None
360360

361-
diff_text = f"=== {attribute if not attribute == PYTHON_ENV else "dependencies"} ===\n"
361+
diff_text = (
362+
f"=== {attribute} ===\n"
363+
if not attribute == PYTHON_ENV
364+
else "=== dependencies ===\n"
365+
)
362366

363367
diff_lines = list(ndiff(previous, current))
364368
if any(line.startswith(("-", "+")) for line in diff_lines):

0 commit comments

Comments
 (0)