Skip to content

Commit a3f067c

Browse files
committed
Raise an exception if interval comparison can't be decided
Closes #258
1 parent 1c53162 commit a3f067c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mpmath/libmp/libmpi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def mpi_lt(s, t):
3737
ta, tb = t
3838
if mpf_lt(sb, ta): return True
3939
if mpf_ge(sa, tb): return False
40-
return None
40+
raise ValueError
4141

4242
def mpi_le(s, t):
4343
sa, sb = s
4444
ta, tb = t
4545
if mpf_le(sb, ta): return True
4646
if mpf_gt(sa, tb): return False
47-
return None
47+
raise ValueError
4848

4949
def mpi_gt(s, t): return mpi_lt(t, s)
5050
def mpi_ge(s, t): return mpi_le(t, s)

0 commit comments

Comments
 (0)