Commit 0f9f7f1f authored by Stefan Behnel's avatar Stefan Behnel

forgotten commit: make sure we only infer types if type inference is enabled

parent ab433f3d
......@@ -1146,7 +1146,7 @@ class NameNode(AtomicExprNode):
if not self.entry:
self.entry = env.lookup_here(self.name)
if not self.entry:
if env.directives['infer_types']:
if env.directives['infer_types'] != 'none':
type = unspecified_type
else:
type = py_object_type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment