Skip to content

Commit

Permalink
Fix base class of enums.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Sep 14, 2024
1 parent a820629 commit 9c807bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cdd/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
from collections.abc import Container, Sequence, Set
from enum import IntFlag
from enum import IntEnum
from typing import ClassVar, Optional, SupportsFloat

class LPObjType(IntFlag):
class LPObjType(IntEnum):
MAX: ClassVar[LPObjType] = ...
MIN: ClassVar[LPObjType] = ...
NONE: ClassVar[LPObjType] = ...

class LPSolverType(IntFlag):
class LPSolverType(IntEnum):
CRISS_CROSS: ClassVar[LPSolverType] = ...
DUAL_SIMPLEX: ClassVar[LPSolverType] = ...

class LPStatusType(IntFlag):
class LPStatusType(IntEnum):
DUAL_INCONSISTENT: ClassVar[LPStatusType] = ...
DUAL_UNBOUNDED: ClassVar[LPStatusType] = ...
INCONSISTENT: ClassVar[LPStatusType] = ...
Expand All @@ -21,7 +21,7 @@ class LPStatusType(IntFlag):
UNBOUNDED: ClassVar[LPStatusType] = ...
UNDECIDED: ClassVar[LPStatusType] = ...

class RepType(IntFlag):
class RepType(IntEnum):
GENERATOR: ClassVar[RepType] = ...
INEQUALITY: ClassVar[RepType] = ...
UNSPECIFIED: ClassVar[RepType] = ...
Expand Down

0 comments on commit 9c807bc

Please sign in to comment.