Skip to content

Commit dafbf5f

Browse files
authored
fix: make gurobipy dependency optional in generic type parameter (#471)
1 parent d5c5b1e commit dafbf5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linopy/solvers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ def get_solver_solution() -> Solution:
923923
return Result(status, solution, h)
924924

925925

926-
class Gurobi(Solver[gurobipy.Env | dict[str, Any] | None]):
926+
class Gurobi(Solver["gurobipy.Env | dict[str, Any] | None"]):
927927
"""
928928
Solver subclass for the gurobi solver.
929929

0 commit comments

Comments
 (0)