Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 26, 2023
1 parent 5d577be commit 07165f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions pylint_django/augmentations/__init__.py
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
1 change: 1 addition & 0 deletions pylint_django/tests/input/func_noerror_docstrings.py
Expand Up @@ -3,6 +3,7 @@ class Parent:
def test():
return 0


class ChildDoc(Parent):
def test():
"""Difference"""
Expand Down

0 comments on commit 07165f8

Please sign in to comment.