I think that you should indicate (eg in a comment, or in the docstring) that this is used by the sphinx linkcode extension.