mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 18:38:51 -06:00
Add types to remaining files; activate mypy's disallow_untyped_defs
This commit is contained in:
3
tests/fixtures/redundant.py
vendored
3
tests/fixtures/redundant.py
vendored
@@ -34,8 +34,9 @@ class GurobiInstanceWithRedundancy(Instance):
|
||||
return model
|
||||
|
||||
|
||||
def get_instance_with_redundancy(solver):
|
||||
def get_instance_with_redundancy(solver: Any) -> Instance:
|
||||
if _is_subclass_or_instance(solver, BasePyomoSolver):
|
||||
return PyomoInstanceWithRedundancy()
|
||||
if _is_subclass_or_instance(solver, GurobiSolver):
|
||||
return GurobiInstanceWithRedundancy()
|
||||
assert False
|
||||
|
||||
Reference in New Issue
Block a user