Sphinx :ivar tag goes looking for cross-references
I want to document Python object attributes with Sphinx. I understand I should use :ivar varname: description :ivar type varname: description However I'm seeing a weird behaviour, that is Sphinx searches my project for the variable name and tries to create symlinks. E.g. this code: class A(object): """ :ivar x: some description """ def __init__(self, x): self.x = x class B(object): def x(self): return 1 class C(object): def x(self): return 2 will cause this error: module1.py:docstring of mylibrary.module1.A:None: WARNING: more than one target found for cross-reference u'x': mylibrary.module1.C