Skip to content

Commit 315fbea

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b13c04f commit 315fbea

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

linopy/io.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,14 @@ def to_file(
710710
if io_api == "lp":
711711
to_lp_file(m, fn, integer_label, slice_size=slice_size, progress=progress)
712712
elif io_api == "lp-debug":
713-
to_lp_file(m, fn, integer_label, slice_size=slice_size, progress=progress, anonymously=False)
713+
to_lp_file(
714+
m,
715+
fn,
716+
integer_label,
717+
slice_size=slice_size,
718+
progress=progress,
719+
anonymously=False,
720+
)
714721
elif io_api == "lp-polars":
715722
to_lp_file_polars(
716723
m, fn, integer_label, slice_size=slice_size, progress=progress

test/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def test_to_file_lp_debug(model, tmp_path):
131131
import gurobipy
132132

133133
fn = tmp_path / "test.lp"
134-
model.to_file(fn, io_api='lp-debug')
134+
model.to_file(fn, io_api="lp-debug")
135135

136136
gurobipy.read(str(fn))
137137

0 commit comments

Comments
 (0)