diff options
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: |