decorator-operations icon indicating copy to clipboard operation
decorator-operations copied to clipboard

filter only works for class methods

Open TomW1605 opened this issue 1 year ago • 0 comments

the filter function passes on all but the first argument. looking at the testing code that makes sense if the function being filtered is a class function since it removes the self argument that is added implicity. however it breaks when it is not a class function and so does not have the self argument.

this can be worked around by adding a dummy argument to the function and all its calls but that is very messy. is there some check that could be done to only remove that argument when the function is a class method and leave it if not?

TomW1605 avatar Aug 19 '24 09:08 TomW1605