Fix linting.

This commit is contained in:
Mikael CAPELLE
2024-12-03 14:11:29 +01:00
parent 5c43eb2c73
commit b32d46b641
49 changed files with 1160 additions and 353 deletions

View File

@@ -0,0 +1,12 @@
from __future__ import annotations
from docplex.mp.constr import BinaryConstraint, NotEqualConstraint
class Operand:
def negate(self) -> Operand: ...
def __le__(self, other: Operand | float) -> BinaryConstraint: ...
def __ge__(self, other: Operand | float) -> BinaryConstraint: ...
def __eq__(self, other: Operand | float) -> BinaryConstraint: ... # type: ignore
class LinearOperand(Operand):
def __ne__(self, other: Operand | float) -> NotEqualConstraint: ... # type: ignore