We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c53162 commit a3f067cCopy full SHA for a3f067c
1 file changed
mpmath/libmp/libmpi.py
@@ -37,14 +37,14 @@ def mpi_lt(s, t):
37
ta, tb = t
38
if mpf_lt(sb, ta): return True
39
if mpf_ge(sa, tb): return False
40
- return None
+ raise ValueError
41
42
def mpi_le(s, t):
43
sa, sb = s
44
45
if mpf_le(sb, ta): return True
46
if mpf_gt(sa, tb): return False
47
48
49
def mpi_gt(s, t): return mpi_lt(t, s)
50
def mpi_ge(s, t): return mpi_le(t, s)
0 commit comments