diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2017-03-12 14:37:20 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-03-12 14:37:20 +0200 |
commit | 57a087f7555dfda286f3bd81c4712d126821306f (patch) | |
tree | 3087db9a5697fa33ce0d340a93aaf6c5682b1be2 /astroid/nodes.py | |
parent | 7feb1df5c9580a54f12f480769626a4e16147ded (diff) | |
download | astroid-git-57a087f7555dfda286f3bd81c4712d126821306f.tar.gz |
Use nodes.Unknown instead of Uninferable for specifying unknown inference results
In the context of binop inference for lists and tuples, we were rebuilding
a collection with the inferred elements. We were using Uninferable for specifying inference failures, but this leads to having non-AST nodes in collection's elts attribute, which should not happen. Instead, we replaced Uninferable with Unknown, meaning now we have an AST object.
Diffstat (limited to 'astroid/nodes.py')
-rw-r--r-- | astroid/nodes.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/nodes.py b/astroid/nodes.py index 861b0a66..2b207d02 100644 --- a/astroid/nodes.py +++ b/astroid/nodes.py @@ -42,6 +42,7 @@ from astroid.node_classes import ( Backquote, Discard, AssName, AssAttr, Getattr, CallFunc, From, # Node not present in the builtin ast module. DictUnpack, + Unknown, ) from astroid.scoped_nodes import ( Module, GeneratorExp, Lambda, DictComp, |