From 29655b0428a9a2953a4c5cd5e1ac23565d32d06c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 14 Apr 2010 21:44:15 +0200 Subject: [PATCH] quick fix for 'not None' tests --- Cython/Compiler/Nodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 29b1562f..5e0694ae 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1889,6 +1889,7 @@ class DefNode(FuncDefNode): # default depends on compiler directive arg.accept_none = allow_none_for_extension_args else: + arg.accept_none = True if arg.not_none: error(self.pos, "Only extension type arguments can have 'not None'") if arg.or_none: -- 2.26.2