From 6e24756746e1c1ecea0de7c83e6a03ca3f2ba103 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 15 Jul 2019 17:16:00 +0200 Subject: [PATCH] Fix: replace notimplemented by NotImplementedError --- mapytex/calculus/API/tokens/polynomial.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mapytex/calculus/API/tokens/polynomial.py b/mapytex/calculus/API/tokens/polynomial.py index 020e47f..30a75de 100644 --- a/mapytex/calculus/API/tokens/polynomial.py +++ b/mapytex/calculus/API/tokens/polynomial.py @@ -55,11 +55,11 @@ class Polynomial(Token): @classmethod def random(cls): - raise NotImplemented + raise NotImplementedError def __setitem__(self, key, item): """ Use Polynomial like if they were a dictionnary to set coefficients """ - raise NotImplemented("Can't set coefficient of a polynomial") + raise NotImplementedError("Can't set coefficient of a polynomial") def __getitem__(self, key): """ Use Polynomial like if they were a dictionnary to get coefficients @@ -104,7 +104,7 @@ class Polynomial(Token): @property def roots(self): """ Get roots of the Polynomial """ - raise NotImplemented("Can't compute roots not specific polynomial") + raise NotImplementedError("Can't compute roots not specific polynomial") class Linear(Polynomial): @@ -142,7 +142,7 @@ class Linear(Polynomial): @classmethod def random(cls): - raise NotImplemented + raise NotImplementedError @property def a(self): @@ -213,7 +213,7 @@ class Quadratic(Polynomial): @classmethod def random(cls): - raise NotImplemented + raise NotImplementedError @property def a(self): @@ -238,7 +238,7 @@ class Quadratic(Polynomial): elif self.delta._mo == 0: return [Expression.from_str(f"-{self.b}/(2*{self.a})").simplify()] else: - raise NotImplemented("Todo!") + raise NotImplementedError("Todo!")