Skip to content

Sphinx 9.0.0: No module named 'sphinx.ext.autodoc.mock' #586

@woutdenolf

Description

@woutdenolf

This will no longer work for Sphinx 9.0.0

from sphinx.ext.autodoc.mock import mock

Test with Sphinx 9.0.0rc1 pre-release:

pip install --pre  sphinx_autodoc_typehints

python -c "import sphinx_autodoc_typehints"

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File ".../site-packages/sphinx_autodoc_typehints/__init__.py", line 17, in <module>
    from sphinx.ext.autodoc.mock import mock
ModuleNotFoundError: No module named 'sphinx.ext.autodoc.mock'

See also https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst#incompatible-changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions