diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2017-12-15 09:50:10 +0100 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-12-15 09:56:24 +0100 |
| commit | dd4c51f7bf27617cc4ade8f34ef78d8c9ddde2f5 (patch) | |
| tree | e0f464b171d58d7f8185ddbb28da2c6c30c53783 | |
| parent | 93f3cfaaf0e270ecf5f666ab517b22776bf2ed89 (diff) | |
| download | astroid-git-dd4c51f7bf27617cc4ade8f34ef78d8c9ddde2f5.tar.gz | |
Make Unknown a rhs assignable node
This means we can put an Unknown node in RHS of an assignment operations, which will be useful for brain related transforms.
| -rw-r--r-- | astroid/node_classes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/node_classes.py b/astroid/node_classes.py index b213f7d9..dcff3692 100644 --- a/astroid/node_classes.py +++ b/astroid/node_classes.py @@ -4173,7 +4173,7 @@ class JoinedStr(NodeNG): self.values = values -class Unknown(NodeNG): +class Unknown(mixins.AssignTypeMixin, NodeNG): """This node represents a node in a constructed AST where introspection is not possible. At the moment, it's only used in the args attribute of FunctionDef nodes where function signature |
