0

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?

DanielTheRocketMan
  • 3,199
  • 5
  • 36
  • 65

1 Answers1

1

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.

Ken N
  • 76
  • 5