Skip to content

Commit c297503

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

linopy/solvers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,9 @@ def solve_problem_from_model(
16661666
"""
16671667

16681668
if env is not None:
1669-
warnings.warn("Argument 'env' in solve_problem_from_model",DeprecationWarning)
1669+
warnings.warn(
1670+
"Argument 'env' in solve_problem_from_model", DeprecationWarning
1671+
)
16701672
with mosek.Task() as m:
16711673
m = model.to_mosek(m, explicit_coordinate_names=explicit_coordinate_names)
16721674

@@ -1713,7 +1715,9 @@ def solve_problem_from_file(
17131715
Result
17141716
"""
17151717
if env is not None:
1716-
warnings.warn("Argument 'env' in solve_problem_from_model",DeprecationWarning)
1718+
warnings.warn(
1719+
"Argument 'env' in solve_problem_from_model", DeprecationWarning
1720+
)
17171721
with mosek.Task() as m:
17181722
# read sense and io_api from problem file
17191723
sense = read_sense_from_problem_file(problem_fn)

0 commit comments

Comments
 (0)