Fix: Issue with typing null monomial

This commit is contained in:
Bertrand Benjamin 2019-07-15 17:27:38 +02:00
parent 6e24756746
commit 8389a319f0

View File

@ -34,6 +34,17 @@ def multiply_filter(left, right):
:param right: MO
:returns: MO if it is a special case, nothing other wise
"""
try:
if left == 0:
return left
except TypeError:
pass
try:
if right == 0:
return right
except TypeError:
pass
try:
if left == 1:
return right