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/bases.py | |
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/bases.py')
-rw-r--r-- | astroid/bases.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/astroid/bases.py b/astroid/bases.py index e3832d8b..6a4c3191 100644 --- a/astroid/bases.py +++ b/astroid/bases.py @@ -39,10 +39,6 @@ if TYPE_CHECKING: from astroid.constraint import Constraint -# TODO: check if needs special treatment -BOOL_SPECIAL_METHOD = "__bool__" -BUILTINS = "builtins" # TODO Remove in 2.8 - PROPERTIES = {"builtins.property", "abc.abstractproperty"} if PY310_PLUS: PROPERTIES.add("enum.property") @@ -383,7 +379,7 @@ class Instance(BaseInstance): context.boundnode = self try: - result = _infer_method_result_truth(self, BOOL_SPECIAL_METHOD, context) + result = _infer_method_result_truth(self, "__bool__", context) except (InferenceError, AttributeInferenceError): # Fallback to __len__. try: |