Commit 29655b04 authored by Stefan Behnel's avatar Stefan Behnel

quick fix for 'not None' tests

parent 6d5d7ce2
...@@ -1889,6 +1889,7 @@ class DefNode(FuncDefNode): ...@@ -1889,6 +1889,7 @@ class DefNode(FuncDefNode):
# default depends on compiler directive # default depends on compiler directive
arg.accept_none = allow_none_for_extension_args arg.accept_none = allow_none_for_extension_args
else: else:
arg.accept_none = True
if arg.not_none: if arg.not_none:
error(self.pos, "Only extension type arguments can have 'not None'") error(self.pos, "Only extension type arguments can have 'not None'")
if arg.or_none: if arg.or_none:
......
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