You can change add_module_names
to False
in the file conf.py
:
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
add_module_names = False
Then foo.bar.my_function()
will display as my_function()
.