Skip to content

Commit a736bd1

Browse files
Drop compat layer for Uninferable
1 parent d8362a3 commit a736bd1

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

pylint_django/compat.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@
1212
from astroid.nodes import Function as FunctionDef
1313
from astroid.nodes import Getattr as Attribute
1414

15-
# pylint 2.04->2.2 : YES was renamed to Uninferable, then YES became deprecated, then was removed
16-
try:
17-
from astroid.bases import YES as Uninferable
18-
except ImportError:
19-
try:
20-
from astroid.util import YES as Uninferable
21-
except ImportError:
22-
from astroid.util import Uninferable
23-
2415
import pylint
2516

2617
# pylint before version 2.3 does not support load_configuration() hook.

pylint_django/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
import sys
44

55
import astroid
6+
from astroid import Uninferable
67
from astroid.bases import Instance
78
from astroid.exceptions import InferenceError
89
from astroid.nodes import ClassDef
910

10-
from pylint_django.compat import Uninferable
11-
1211
PY3 = sys.version_info >= (3, 0) # TODO: pylint_django doesn't support Py2 any more
1312

1413

0 commit comments

Comments
 (0)