Skip to content

Commit 91188b9

Browse files
FBumannclaude
andcommitted
refac: use backtick name style in PiecewiseFormulation repr
Match Constraint repr pattern: `name` instead of 'name'. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d19bd52 commit 91188b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linopy/piecewise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class PiecewiseFormulation:
7777
constraints: Constraints
7878

7979
def __repr__(self) -> str:
80-
r = f"PiecewiseFormulation '{self.name}'{self.method}\n"
80+
r = f"PiecewiseFormulation `{self.name}`{self.method}\n"
8181
r += " Variables:\n"
8282
for vname, var in self.variables.items():
8383
dims = ", ".join(str(d) for d in var.coords) if var.coords else ""

0 commit comments

Comments
 (0)