Commit c03309b2 authored by Xavier Thompson's avatar Xavier Thompson

Consider only uninherited overloaded alternatives for wrapper method synthesis

parent af7470f5
......@@ -5391,6 +5391,10 @@ class CypclassWrapperDefNode(CClassDefNode):
return # for now skip static methods
alternatives = cfunc_method.entry.all_alternatives()
# > consider only the alternatives that are actually defined in this wrapped cypclass
alternatives = list(filter(lambda e: e.mro_index == 0, alternatives))
if len(alternatives) > 1:
return # for now skip overloaded methods
......
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