Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Sep 17, 2024
1 parent c721f0c commit 83df2f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_issue35.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@


# this should not segfault
def test_issue35():
def test_issue35() -> None:
mat = cdd.matrix_from_array([[0, 0, 0]], rep_type=cdd.RepType.INEQUALITY)
cdd.matrix_canonicalize(mat)
3 changes: 2 additions & 1 deletion test/test_linprog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from collections.abc import Sequence
from typing import Optional

import pytest

Expand Down Expand Up @@ -123,7 +124,7 @@ def test_linprog_1(
array: Sequence[Sequence[float]],
obj_type: LPObjType,
status: LPStatusType,
primal_solution: Sequence[float] | None,
primal_solution: Optional[Sequence[float]],
) -> None:
lp = linprog_from_array(array, obj_type=obj_type)
linprog_solve(lp)
Expand Down

0 comments on commit 83df2f2

Please sign in to comment.