Use multipledispatch to define divide (plus dostring for add)

This commit is contained in:
2018-03-17 10:38:59 +03:00
parent c08ea7b86a
commit f4422c6d1a
2 changed files with 49 additions and 76 deletions

View File

@@ -10,19 +10,19 @@
Adding MO
"""
from multipledispatch import Dispatcher
from ..tree import Tree
from ..MO.mo import MO, MOnumber
from ..MO.fraction import MOFraction
from .exceptions import AddError
from .arithmetic import lcm
from .type_filter import args_are
from multipledispatch import Dispatcher
add_doc = """ Adding MOs
:param left: left MO
:param right: right MO
:return: Tree or MO
:param left: left MO
:param right: right MO
:return: Tree or MO
"""
add = Dispatcher("add", doc=add_doc)