Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Dec 19, 2024
1 parent f6e48cc commit 6a2178a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ilpy/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class SolverStatus(Enum):
SUBOPTIMAL = "suboptimal"
OTHER = "other"


# Gurobi Status PySCIPOpt Status Meaning
# GRB.LOADED SCIP_STATUS_UNKNOWN Model loaded but not optimized yet.
# GRB.OPTIMAL SCIP_STATUS_OPTIMAL Optimal solution found.
Expand Down
1 change: 1 addition & 0 deletions src/ilpy/_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def solve(
if TYPE_CHECKING:
from ilpy import EventData
def callback(data: EventData) -> None:
# backend and event_type are guaranteed to be present
# they will narrow down the available keys
Expand Down
2 changes: 1 addition & 1 deletion src/ilpy/solver_backends/_gurobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@


class GurobiSolver(SolverBackend):
def __init__(self):
def __init__(self) -> None:
# we put this in __init__ instead of initialize so that it will raise an
# exception inside of create_backend if the module is imported but the
# license is not available
Expand Down

0 comments on commit 6a2178a

Please sign in to comment.