From f8b24472d19ae5f243e4fa68455b44b26399018b Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 30 Oct 2019 20:59:09 +0100 Subject: [PATCH] Fix: clean __init__ --- mapytex/calculus/API/tokens/polynomial.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mapytex/calculus/API/tokens/polynomial.py b/mapytex/calculus/API/tokens/polynomial.py index 82de79c..e9d2616 100644 --- a/mapytex/calculus/API/tokens/polynomial.py +++ b/mapytex/calculus/API/tokens/polynomial.py @@ -33,14 +33,9 @@ class Polynomial(Token): def __init__(self, a, name="", ancestor=None): """ Initiate Polynomial with a MO""" if not isinstance(a, MO): - if isinstance(a, str): - raise TypeError - else: - raise TypeError - else: - mo = a + raise TypeError - Token.__init__(self, mo, name, ancestor) + Token.__init__(self, a, name, ancestor) self._mathtype = "polynome" @classmethod