From 3594f918658df148963e69b1386c6a756e5ad732 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 6 Mar 2010 18:14:05 +0100 Subject: [PATCH] fix infer_types directive check --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index dab0d082..89acf917 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -2025,7 +2025,7 @@ class DefNode(FuncDefNode): def declare_python_arg(self, env, arg): if arg: - if env.directives['infer_types'] != 'none': + if env.directives['infer_types'] != False: type = PyrexTypes.unspecified_type else: type = py_object_type -- 2.26.2