diff options
Diffstat (limited to 'astroid/node_classes.py')
-rw-r--r-- | astroid/node_classes.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/astroid/node_classes.py b/astroid/node_classes.py index 5a92210..3dbba34 100644 --- a/astroid/node_classes.py +++ b/astroid/node_classes.py @@ -56,9 +56,9 @@ def unpack_infer(stmt, context=None): if inferred is stmt: yield inferred return - # else, infer recursivly, except YES object that should be returned as is + # else, infer recursivly, except Uninferable object that should be returned as is for inferred in stmt.infer(context): - if inferred is util.YES: + if inferred is util.Uninferable: yield inferred else: for inf_inf in unpack_infer(inferred, context): @@ -426,8 +426,8 @@ class NodeNG(object): PendingDeprecationWarning, stacklevel=2) return self.inferred() - def instanciate_class(self): - """instanciate a node if it is a ClassDef node, else return self""" + def instantiate_class(self): + """instantiate a node if it is a ClassDef node, else return self""" return self def has_base(self, node): @@ -572,10 +572,10 @@ class NodeNG(object): method. * True. Most of constructs are True by default: classes, functions, modules etc - * YES: the inference engine is uncertain of the + * Uninferable: the inference engine is uncertain of the node's value. """ - return util.YES + return util.Uninferable class Statement(NodeNG): @@ -1292,7 +1292,7 @@ class Dict(NodeNG, bases.Instance): except IndexError: continue for inferredkey in key.infer(context): - if inferredkey is util.YES: + if inferredkey is util.Uninferable: continue if isinstance(inferredkey, Const) \ and inferredkey.value == lookup_key: |