I am extending some code for an online class. There are a bunch of abstract methods defined as follows:
def aMethod(self):
abstract
The code executes correctly, but PyDev is reporting the following error:
Undefined variable: abstract
It’s doing so every time it encounters the abstract word. What’s going on here?
I presume what’s happening here is that the original developer is shoehorning abstract methods into the language by trying to reference an undefined symbol named
abstract, which if called and not overridden, will cause a run-time error.