I have created my own module X. At the beginning, I import functions from some other modules (e.g. from math import func). I have noticed that when I create documentation with:
pydoc -w X
the resulting file also contains the imported function function from the math module, which is undesirable (especially if I import many functions from several modules, which is what I do).
It can be avoided by instead calling:
import math
but in this case I have to import all the functions and then call them using math.func instead of just func.
Is there another way with which I can avoid populating my documentation with imported functions while still being able to import functions with from?

