Skip to content

Commit 9811df2

Browse files
committed
[#343] Fixed import of scoped nodes, as some members moved between astroid 2.9.0 - 2.9.1
1 parent fb85b71 commit 9811df2

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

Diff for: CHANGELOG.rst

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@ Changelog
33

44
Version 2.5 [WIP]
55
---------------------------
6+
7+
Bugfixes
8+
~~~~~~~~
9+
10+
- Fixed compatability with astroid 2.9.1 (`#343 <https://github.com/PyCQA/pylint-django/issues/343>`_)
11+
12+
New
13+
~~~
14+
615
- Moved from Travis CI to GitHub Actions (`#366 <https://github.com/PyCQA/pylint-django/pull/366>`_ and `#340 <https://github.com/PyCQA/pylint-django/pull/340>`_)
7-
- Added pre-commit configuration and began enforcing black/isort code formatting (TODO: add github action to enforce)
16+
- Added pre-commit configuration and began enforcing black/isort code formatting
817
- Multiple test fixes (including `#338 <https://github.com/PyCQA/pylint-django/issues/338>`_) - newer versions of pylint expect a different format for the expected messages txt files.
9-
- TODO: Bumped dependency for pylint-django-utils to get `multi-threaded pylint support <https://github.com/PyCQA/pylint-plugin-utils/pull/21>`_
18+
- Bumped dependency for pylint-django-utils to get `multi-threaded pylint support <https://github.com/PyCQA/pylint-plugin-utils/pull/21>`_
1019

1120
Version 2.4.4 (26 Apr 2021)
1221
---------------------------

Diff for: pylint_django/augmentations/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
from astroid import InferenceError
77
from astroid.nodes import Attribute, ClassDef, ImportFrom
8+
from astroid.nodes.scoped_nodes import ClassDef as ScopedClass
9+
from astroid.nodes.scoped_nodes import Module
810
from astroid.objects import Super
9-
from astroid.scoped_nodes import ClassDef as ScopedClass
10-
from astroid.scoped_nodes import Module
1111
from django import VERSION as django_version
1212
from django.utils import termcolors
1313
from django.views.generic.base import ContextMixin, RedirectView, View

Diff for: pylint_django/transforms/fields.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from astroid import MANAGER, AstroidImportError, inference_tip, nodes, scoped_nodes
1+
from astroid import MANAGER, AstroidImportError, inference_tip, nodes
2+
from astroid.nodes import scoped_nodes
23

34
from pylint_django import utils
45

0 commit comments

Comments
 (0)