Skip to content

Commit

Permalink
Reformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Sep 17, 2024
1 parent aacedb1 commit f95a403
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/cdd/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ def linprog_from_array(
array: Sequence[Sequence[SupportsNumber]], obj: LPObj
) -> LinProg: ...
def linprog_from_matrix(mat: Matrix) -> LinProg: ...
def linprog_solve(
lp: LinProg, solver: LPSolver = LPSolver.DUAL_SIMPLEX
) -> None: ...
def linprog_solve(lp: LinProg, solver: LPSolver = LPSolver.DUAL_SIMPLEX) -> None: ...
def matrix_append_to(mat1: Matrix, mat2: Matrix) -> None: ...
def matrix_canonicalize(mat: Matrix) -> tuple[Set[int], Set[int]]: ...
def matrix_copy(mat: Matrix) -> Matrix: ...
Expand Down
4 changes: 1 addition & 3 deletions src/cdd/gmp.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ def linprog_from_array(
array: Sequence[Sequence[SupportsNumber]], obj: LPObj
) -> LinProg: ...
def linprog_from_matrix(mat: Matrix) -> LinProg: ...
def linprog_solve(
lp: LinProg, solver: LPSolver = LPSolver.DUAL_SIMPLEX
) -> None: ...
def linprog_solve(lp: LinProg, solver: LPSolver = LPSolver.DUAL_SIMPLEX) -> None: ...
def matrix_append_to(mat1: Matrix, mat2: Matrix) -> None: ...
def matrix_canonicalize(mat: Matrix) -> tuple[Set[int], Set[int]]: ...
def matrix_copy(mat: Matrix) -> Matrix: ...
Expand Down
4 changes: 1 addition & 3 deletions test/gmp/test_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import cdd.gmp


@pytest.mark.parametrize(
"name", ["Rep", "LPObj", "LPStatus", "LPSolver"]
)
@pytest.mark.parametrize("name", ["Rep", "LPObj", "LPStatus", "LPSolver"])
def test_gmp_rep(name: str) -> None:
assert issubclass(getattr(cdd, name), IntEnum)
assert getattr(cdd, name) is getattr(cdd.gmp, name)

0 comments on commit f95a403

Please sign in to comment.