I am working with an external module with a class A
and function foo
. The class calls the function inside it
def foo(...):
...
class A:
def m(self, ...):
...
foo()
...
...
I need to change the behavior of foo
without editing the module. Is there a neat way to do it, without subclassing class A
?