Skip to content

Commit 6c34bc3

Browse files
committed
make linter happy
1 parent cfe24fe commit 6c34bc3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/sage/numerical/mip.pyx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ cdef class MixedIntegerLinearProgram(SageObject):
860860
861861
EXAMPLES::
862862
863-
sage: mip.<a,b> = MixedIntegerLinearProgram(solver='GLPK')
863+
sage: mip.<a,b> = MixedIntegerLinearProgram(solver='GLPK') # indirect doctest
864864
sage: a[0] + b[2]
865865
x_0 + x_1
866866
sage: mip.show()
@@ -2299,7 +2299,8 @@ cdef class MixedIntegerLinearProgram(SageObject):
22992299
sage: p.number_of_constraints()
23002300
2
23012301
"""
2302-
if self._check_redundant: self._constraints.pop(i)
2302+
if self._check_redundant:
2303+
self._constraints.pop(i)
23032304
self._backend.remove_constraint(i)
23042305

23052306
def remove_constraints(self, constraints):
@@ -2644,7 +2645,8 @@ cdef class MixedIntegerLinearProgram(SageObject):
26442645
sage: p.solve()
26452646
9.0
26462647
"""
2647-
if log is not None: self._backend.set_verbosity(log)
2648+
if log is not None:
2649+
self._backend.set_verbosity(log)
26482650
self._backend.solve()
26492651
return self._backend.get_objective_value()
26502652

@@ -3262,14 +3264,15 @@ cdef class MIPVariable(SageObject):
32623264
indexed by arbitrary keys and are created dynamically
32633265
on access
32643266
3265-
For more informations, see the method
3267+
For more information, see the method
32663268
``MixedIntegerLinearProgram.new_variable``.
32673269
32683270
EXAMPLES::
32693271
32703272
sage: p = MixedIntegerLinearProgram(solver='GLPK')
32713273
sage: p.new_variable(nonnegative=True)
32723274
MIPVariable with 0 real components, >= 0
3275+
32733276
"""
32743277
self._dict = {}
32753278
self._p = mip

0 commit comments

Comments
 (0)