Skip to content

Commit 83df2f2

Browse files
committed
Minor fixes.
1 parent c721f0c commit 83df2f2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

test/test_issue35.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33

44
# this should not segfault
5-
def test_issue35():
5+
def test_issue35() -> None:
66
mat = cdd.matrix_from_array([[0, 0, 0]], rep_type=cdd.RepType.INEQUALITY)
77
cdd.matrix_canonicalize(mat)

test/test_linprog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from collections.abc import Sequence
2+
from typing import Optional
23

34
import pytest
45

@@ -123,7 +124,7 @@ def test_linprog_1(
123124
array: Sequence[Sequence[float]],
124125
obj_type: LPObjType,
125126
status: LPStatusType,
126-
primal_solution: Sequence[float] | None,
127+
primal_solution: Optional[Sequence[float]],
127128
) -> None:
128129
lp = linprog_from_array(array, obj_type=obj_type)
129130
linprog_solve(lp)

0 commit comments

Comments
 (0)