Fix: clean __init__
This commit is contained in:
parent
240857a7ad
commit
f8b24472d1
@ -33,14 +33,9 @@ class Polynomial(Token):
|
|||||||
def __init__(self, a, name="", ancestor=None):
|
def __init__(self, a, name="", ancestor=None):
|
||||||
""" Initiate Polynomial with a MO"""
|
""" Initiate Polynomial with a MO"""
|
||||||
if not isinstance(a, MO):
|
if not isinstance(a, MO):
|
||||||
if isinstance(a, str):
|
|
||||||
raise TypeError
|
raise TypeError
|
||||||
else:
|
|
||||||
raise TypeError
|
|
||||||
else:
|
|
||||||
mo = a
|
|
||||||
|
|
||||||
Token.__init__(self, mo, name, ancestor)
|
Token.__init__(self, a, name, ancestor)
|
||||||
self._mathtype = "polynome"
|
self._mathtype = "polynome"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user