diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2023-04-24 00:58:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 00:58:04 +0200 |
commit | 1336ee4a9b698bf501b5cda40e3524d6f5e532d5 (patch) | |
tree | 2289350c7e17a98838037438102e8bedaa2cb427 /astroid/nodes | |
parent | 7fa848126c8178e78c47dff0415a1fc175b041eb (diff) | |
download | astroid-git-1336ee4a9b698bf501b5cda40e3524d6f5e532d5.tar.gz |
Remove unused constants (#2141)
* Remove `PY38_PLUS` constant
* Remove `BUILTINS` constants
* Remove `Load` + `Store` + `Del`
* Remove `BOOL_SPECIAL_METHOD`
Diffstat (limited to 'astroid/nodes')
-rw-r--r-- | astroid/nodes/scoped_nodes/scoped_nodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/nodes/scoped_nodes/scoped_nodes.py b/astroid/nodes/scoped_nodes/scoped_nodes.py index 771f93f3..ef25c2b7 100644 --- a/astroid/nodes/scoped_nodes/scoped_nodes.py +++ b/astroid/nodes/scoped_nodes/scoped_nodes.py @@ -19,7 +19,7 @@ from functools import cached_property, lru_cache from typing import TYPE_CHECKING, ClassVar, Literal, NoReturn, TypeVar, overload from astroid import bases, util -from astroid.const import IS_PYPY, PY38, PY38_PLUS, PY39_PLUS, PYPY_7_3_11_PLUS +from astroid.const import IS_PYPY, PY38, PY39_PLUS, PYPY_7_3_11_PLUS from astroid.context import ( CallContext, InferenceContext, @@ -2000,7 +2000,7 @@ class ClassDef( Can also return 0 if the line can not be determined. """ - if not PY38_PLUS or IS_PYPY and PY38 and not PYPY_7_3_11_PLUS: + if IS_PYPY and PY38 and not PYPY_7_3_11_PLUS: # For Python < 3.8 the lineno is the line number of the first decorator. # We want the class statement lineno. Similar to 'FunctionDef.fromlineno' # PyPy (3.8): Fixed with version v7.3.11 |