diff --git a/pylint_django/augmentations/__init__.py b/pylint_django/augmentations/__init__.py index 8a2659f3..85bff5f8 100644 --- a/pylint_django/augmentations/__init__.py +++ b/pylint_django/augmentations/__init__.py @@ -802,7 +802,6 @@ def is_drf_serializer(node): return node_is_subclass(node, "rest_framework.serializers.Serializer") - def has_different_docstring(node): """Checks if function of child class has different docstring than parent""" parent = node.parent.frame() @@ -1023,8 +1022,6 @@ def apply_augmentations(linter): ) # not overriding creade and update in DRF Serializer class - suppress_message( - linter, ClassChecker.visit_classdef, "abstract-method", is_drf_serializer - ) + suppress_message(linter, ClassChecker.visit_classdef, "abstract-method", is_drf_serializer) apply_wrapped_augmentations() diff --git a/pylint_django/tests/input/func_noerror_docstrings.py b/pylint_django/tests/input/func_noerror_docstrings.py index 6ae596fe..91e7c753 100644 --- a/pylint_django/tests/input/func_noerror_docstrings.py +++ b/pylint_django/tests/input/func_noerror_docstrings.py @@ -3,6 +3,7 @@ class Parent: def test(): return 0 + class ChildDoc(Parent): def test(): """Difference"""