I want to add a link to a method of a class in one module (say module_2.py
) in another method in another module ( say module_1.py
). I want the link to work in Sphinx.
Suppose:
module_1.py
class ABC:
def foo(self):
"""
See docstring of module_2.py bar():<link to bar() in module_2.py>
"""
print("foo")
module_2.py
class XYZ:
def bar(self):
"""
This function prints hello.
"""
print("hello")