From 0f9f7f1f98be9dee88953e39d8af8d751e800b1e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 4 Dec 2009 06:40:18 +0100 Subject: [PATCH] forgotten commit: make sure we only infer types if type inference is enabled --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 9cd91dde..ec7507df 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -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 -- 2.26.2