Page MenuHomePhabricator

Sphinx autodoc fails to inspect classes deprecated using ModuleDeprecationWrapper
Closed, ResolvedPublic

Description

The fix for T74424: ModuleDeprecationWrapper breaks code inspection tools, including epydoc, sphinx autodoc helped various tools work with ModuleDeprecationWrapper, but there is still an issue with them. It looks like an Upstream problem in Sphinx -- the bug isnt in docutils.

docs/api_ref/pywikibot.rst:4: WARNING: error while formatting arguments for pywikibot.UserActionRefuse: 'function' object has no attribute '__mro__'
docs/api_ref/pywikibot.rst:107: WARNING: error while formatting arguments for pywikibot.exceptions.DeprecatedPageNotFoundError: 'function' object has no attribute '__mro__'
docs/api_ref/pywikibot.data.rst:15: WARNING: error while formatting arguments for pywikibot.data.api.CategoryPageGenerator: 'function' object has no attribute '__mro__'
docs/api_ref/pywikibot.data.rst:15: WARNING: error while formatting arguments for pywikibot.data.api.ImagePageGenerator: 'function' object has no attribute '__mro__'