Fix linting.
This commit is contained in:
12
typings/docplex/mp/operand.pyi
Normal file
12
typings/docplex/mp/operand.pyi
Normal 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
|
||||
Reference in New Issue
Block a user