Commit 1cb04d5a authored by Robert Bradshaw's avatar Robert Bradshaw

Fix __richcmp__ bug that's been failing Sage tests.

parent e1f4acc0
...@@ -2972,6 +2972,9 @@ class DefNodeWrapper(FuncDefNode): ...@@ -2972,6 +2972,9 @@ class DefNodeWrapper(FuncDefNode):
if not arg.type.is_pyobject: if not arg.type.is_pyobject:
if not arg.type.create_from_py_utility_code(env): if not arg.type.create_from_py_utility_code(env):
pass # will fail later pass # will fail later
elif not arg.hdr_type.is_pyobject:
if not arg.hdr_type.create_to_py_utility_code(env):
pass # will fail later
def signature_has_nongeneric_args(self): def signature_has_nongeneric_args(self):
argcount = len(self.args) argcount = len(self.args)
......
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