We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd984dc + 5f72865 commit 4ebcbe7Copy full SHA for 4ebcbe7
1 file changed
src/array_api_extra/testing.py
@@ -227,6 +227,8 @@ def test_myfunc(xp):
227
# Replace the method with a clone before adding tags
228
# to avoid adding unwanted tags to a parent method when
229
# the method was inherited from a parent class.
230
+ # Note: can't just accept an unbound method `cls.method_name` because in
231
+ # case of inheritance it would be impossible to attribute it to the child class.
232
cls, method_name = func
233
method = getattr(cls, method_name)
234
setattr(cls, method_name, _clone_function(method))
0 commit comments