Skip to content

Commit 2e4d89e

Browse files
carlioatodorov
carlio
authored andcommitted
[refs #205] Cleaning up some old compatability code
1 parent c5b5bfd commit 2e4d89e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pylint_django/augmentations/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -787,12 +787,6 @@ def apply_augmentations(linter):
787787
# model forms have no __init__ method anywhere in their bases
788788
suppress_message(linter, ClassChecker.visit_classdef, 'W0232', is_class('django.forms.models.ModelForm'))
789789

790-
# forms implement __getitem__ but not __len__, thus raising a "Badly implemented container" warning which
791-
# we will suppress. NOTE: removed from pylint, https://github.com/PyCQA/pylint/issues/112
792-
# keeping here in case it gets re-implemented
793-
# suppress_message(linter, _leave_classdef(MisdesignChecker), 'R0924', is_class('django.forms.forms.Form'))
794-
# suppress_message(linter, _leave_classdef(MisdesignChecker), 'R0924', is_class('django.forms.models.ModelForm'))
795-
796790
# Meta
797791
suppress_message(linter, DocStringChecker.visit_classdef, 'missing-docstring', is_model_meta_subclass)
798792
pylint_newstyle_classdef_compat(linter, 'old-style-class', is_model_meta_subclass)

0 commit comments

Comments
 (0)