Commit 8ea0b38f authored by Stefan Behnel's avatar Stefan Behnel

fix keyword arguments in extension type calls

parent 9687773f
......@@ -2527,7 +2527,7 @@ class GeneralCallNode(CallNode):
self.keyword_args.analyse_types(env)
if self.starstar_arg:
self.starstar_arg.analyse_types(env)
if self.function.type is not py_object_type:
if not self.function.type.is_pyobject:
if hasattr(self.function, 'entry') and not self.function.entry.as_variable:
error(self.pos, "Keyword arguments not allowed in cdef functions.")
else:
......
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