You can reference a class like this:
class B(object):
"""docs for B with reference to :class:`.A`"""
pass
Sphinx will intelligently try and figure out what you’re referencing. If there are multiple classes with the name A, you might get a warning, but it should pick up the one in the current module.