Python 3: notImplementedError "undefined name" warning

870 Views Asked by At

I have got the warning "undefined name notImplemented error" in spyder code analysis in the abstract class presented below:

class Shape:        # define parent class
   parametersList = []
   def __init__(self,parametersList,color):
       self.parametersList=parametersList
       self.color=color
   def print_color(self):
       # Prints object color
       raise notImplementedError
   def eval_area(self):   
       # Evals area
       raise notImplementedError

What is happening?

1

There are 1 best solutions below

0
Ken N On BEST ANSWER

First off, try capitalizing "NotImplementedError". If thats not the case then I believe this thread from Semmle might give you a lead on the situation otherwise.