Skip to content

Commit 249d8e2

Browse files
Temporary retro-compatibility with older pylint versions
1 parent abcbe35 commit 249d8e2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

astroid/bases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
# TODO: check if needs special treatment
4646
BOOL_SPECIAL_METHOD = "__bool__"
47+
BUILTINS = "builtins" # TODO Remove in 2.8
4748

4849
PROPERTIES = {"builtins.property", "abc.abstractproperty"}
4950
if PY310_PLUS:

astroid/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
PY38_PLUS = sys.version_info >= (3, 8)
66
PY39_PLUS = sys.version_info >= (3, 9)
77
PY310_PLUS = sys.version_info >= (3, 10)
8+
BUILTINS = "builtins" # TODO Remove in 2.8
89

910

1011
class Context(enum.Enum):

0 commit comments

Comments
 (0)