Picharma warning: all abstract methods must be implemented

the code

class A(object): def a(self): raise NotImplementedError class B(A): def a(self): return 7 class C(B): pass 

Why is Pycharm complaining?

Problem Synopsis Class C must implement all abstract methods

+8
python inheritance warnings pycharm
source share
2 answers

This is an error message - you can vote for it here: https://youtrack.jetbrains.com/issue/PY-16132

+8
source share

As expected, python itself recognizes that instances of class C are valid. Therefore, I suspected an error in PyCharm.

Googling for PyCharm Bug Tracker got me https://youtrack.jetbrains.com/issues/PY

Of course, the ticket was raised. https://youtrack.jetbrains.com/issue/PY-16132

Not fixed yet

0
source share

All Articles