Skip to content

Commit 9258e75

Browse files
committed
Basic._richcmp_(): Move Rel import below ==, != checks.
1 parent 4a49d23 commit 9258e75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

symengine/lib/symengine_wrapper.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ from operator import mul
1313
from functools import reduce
1414
import collections
1515
import warnings
16-
from sympy import Rel
1716

1817
include "config.pxi"
1918

@@ -467,7 +466,8 @@ cdef class Basic(object):
467466
return symengine.eq(deref(A.thisptr), deref(B.thisptr))
468467
elif (op == 3):
469468
return symengine.neq(deref(A.thisptr), deref(B.thisptr))
470-
elif (op == 0):
469+
from sympy import Rel
470+
if (op == 0):
471471
return Rel(A, B, '<')
472472
elif (op == 1):
473473
return Rel(A, B, '<=')

0 commit comments

Comments
 (0)