Skip to content

Commit 3521f57

Browse files
committed
There is a problem with false-positives for wrong-import messages right now with pylint 1.5 so just ignore them for now
1 parent f9793ae commit 3521f57

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pylint_django/augmentations/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ class ModelB(models.Model):
119119
children = list(node.get_children())
120120
for child in children:
121121
try:
122-
inferred = inferred(child)()
122+
inferred_cls = inferred(child)()
123123
except InferenceError:
124124
pass
125125
else:
126-
for cls in inferred:
126+
for cls in inferred_cls:
127127
if (node_is_subclass(cls,
128128
'django.db.models.manager.Manager',
129129
'django.db.models.base.Model',

test/input/func_noerror_foreignkeys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Checks that Pylint does not complain about various
33
methods on Django model fields.
44
"""
5-
# pylint: disable=C0111,W5101
5+
# pylint: disable=C0111,W5101,wrong-import-position
66
from django.db import models
77
from django.db.models import ForeignKey, OneToOneField
88

test/input/func_noerror_forms_py33.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Checks that Pylint does not complain about django Forms
33
"""
4-
# pylint: disable=C0111,W5101,R0903
4+
# pylint: disable=C0111,W5101,R0903,wrong-import-position
55

66
from django import forms
77

test/input/func_noerror_model_unicode_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Ensures that django models without a __unicode__ method are flagged
33
"""
4-
# pylint: disable=C0111
4+
# pylint: disable=C0111,wrong-import-position
55

66
from django.db import models
77

0 commit comments

Comments
 (0)