Basically the solution is to check if the object is a method and count the arguments.
I looked for a more generic solution with PyCallable_Check but I couldn't find a good way to check the argument self.
There may be better solutions.
Differential D6768
Fix T73638: Handle of 'depsgraph_update_post' requires 3 arguments for methods Authored by Germano Cavalcante (mano-wii) on Feb 6 2020, 10:46 PM. Tags None Subscribers None
Details Basically the solution is to check if the object is a method and count the arguments. There may be better solutions.
Diff Detail
|