Unfortunately, autosummary just does not support this. The bit of code that matters is in sphinx.ext.autosummary.__init__.AutoSummary.get_items , which is essentially:
for name in names: # <snip> try: real_name, obj, parent, modname = import_by_name(name, prefixes=prefixes) except ImportError: self.warn('failed to import %s' % name) items.append((name, '', '', name)) continue
name is under the autosummary directive for which you want to make a resume, and therefore, in your case, "AClass.a" . However, since instance attributes are not import_by_name , and import_by_name tries to import the name, this fails. I donβt know why the developers did it this way, but we go.
It should be possible to fix this if you have the time and inclination! I discovered a problem to track it.
source share