I have a file my_module.py
that looks like this:
from copy import deepcopy
from my_other_module import foo
def bar(x):
return deepcopy(x)
I want to get a list of all the functions defined in my_module
and not the imported ones, in this case just [bar]
, not deepcopy
or foo
.