Commit 5ae44db9 authored by Xavier Thompson's avatar Xavier Thompson

Consider only uninherited overloaded alternatives for wrapper method synthesis

parent a3da6eba
......@@ -5602,6 +5602,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