I noticed a warning in Pycharm that won't go a way in my Django project. Only think I can find is a link to it being a PyCharm bug... back in 2016
In my class:
class MySerializer(serializers.Serializer):
...
I get the following warning:
Class MySerializer must implement all abstract methods
When I do the quick fix suggested so it ends up looking like one of the following:
class MySerializer(serializers.Serializer, ABC):
...
# or
class MySerializer(serializers.Serializer, metaclass=ABCMeta):
...
# or
class MySerializer(serializers.Serializer):
# have update or create defined in serializer.
def update(self, instance, validated_data):
pass
def create(self, validated_data):
pass
But this just breaks the project and I'm not too sure what's happening here if I'm being honest or why it wants one of the above solutions to suppress the warning. Is it really a PyCharm bug or am I doing something wrong?