How to fix "Class X must implement all abstract methods" warning

I'm using the Marshmallow package and all of the classes that I create for it (custom Fields, Schema, etc) are displayed with squiggles for the  "Class X must implement all abstract methods".  For example, a simple schema:

class AccountSchema(Schema):
    id = fields.Integer()
    email = fields.Email()

The above is what the Marshmallow tutorials say to do, and the code all works fine.  I can pull up the "Inspection Tool" and see all of the warnings, but have no idea what I need to fix.  Is there any way to find out what abstract methods PyCharm thinks I need to implement?
I may have found my answer.  Is the way to do it to right click on the warning in the Inspection Tool and pick  "Apply Fix 'Implement abstract methods'"?
Your diagnosis is right...Python expects you to implement those methods, and PyCharm is warning you. The warning doesn't list all the methods, as that might be way too long for a popup. You can either do the inspection and quick fix, as you did, or command-click on the base class to open it and visually check the needed methods.

Anyway, good job on figuring it out.

Please sign in to leave a comment.