Fix: Issue with typing null monomial
This commit is contained in:
parent
6e24756746
commit
8389a319f0
@ -34,6 +34,17 @@ def multiply_filter(left, right):
|
|||||||
:param right: MO
|
:param right: MO
|
||||||
:returns: MO if it is a special case, nothing other wise
|
: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:
|
try:
|
||||||
if left == 1:
|
if left == 1:
|
||||||
return right
|
return right
|
||||||
|
Loading…
Reference in New Issue
Block a user