You need to make sure, you actually overload Base.promote_rule. What you are doing is defining a new function locally, that just happens to be called promote_rule.
5 Likes
You need to make sure, you actually overload Base.promote_rule. What you are doing is defining a new function locally, that just happens to be called promote_rule.