Skip to content

Commit 883d858

Browse files
committed
Fix more typing issues.
1 parent 8b66ba0 commit 883d858

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

linopy/dual.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def _con_lookup(m: Model) -> dict:
131131
return con_lookup
132132

133133

134-
def bounds_to_constraints(m) -> None:
134+
def bounds_to_constraints(m: Model) -> None:
135135
"""
136136
Add explicit bound constraints for variables with bounds set directly
137137
in the variable rather than via explicit constraints.
@@ -492,7 +492,7 @@ def _add_dual_objective(
492492

493493

494494
def dualize(
495-
m,
495+
m: Model,
496496
add_objective_constant: float = 0.0,
497497
) -> Model:
498498
"""
@@ -558,7 +558,7 @@ def dualize(
558558
)
559559
return m2
560560

561-
m1.bounds_to_constraints()
561+
bounds_to_constraints(m1)
562562
var_lup = _var_lookup(m1)
563563
con_lup = _con_lookup(m1)
564564
dual_vars = _add_dual_variables(m1, m2)

0 commit comments

Comments
 (0)