Skip to content

Commit 07165f8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5d577be commit 07165f8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pylint_django/augmentations/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,6 @@ def is_drf_serializer(node):
802802
return node_is_subclass(node, "rest_framework.serializers.Serializer")
803803

804804

805-
806805
def has_different_docstring(node):
807806
"""Checks if function of child class has different docstring than parent"""
808807
parent = node.parent.frame()
@@ -1023,8 +1022,6 @@ def apply_augmentations(linter):
10231022
)
10241023

10251024
# not overriding creade and update in DRF Serializer class
1026-
suppress_message(
1027-
linter, ClassChecker.visit_classdef, "abstract-method", is_drf_serializer
1028-
)
1025+
suppress_message(linter, ClassChecker.visit_classdef, "abstract-method", is_drf_serializer)
10291026

10301027
apply_wrapped_augmentations()

pylint_django/tests/input/func_noerror_docstrings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Parent:
33
def test():
44
return 0
55

6+
67
class ChildDoc(Parent):
78
def test():
89
"""Difference"""

0 commit comments

Comments
 (0)