Commit 404a99a4 authored by Xavier Thompson's avatar Xavier Thompson

Consider only uninherited overloaded alternatives for wrapper method synthesis

parent 660bd901
......@@ -5571,6 +5571,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