Sphinx build stuck in reading sources... when singledispatch
and autodoc_mock_imports
are used
#10591
Labels
Milestone
singledispatch
and autodoc_mock_imports
are used
#10591
Describe the bug
Sphinx build hangs forever (until it times out) if
autodoc_mock_imports
is used with code that usessingledispatch
.How to Reproduce
See this repository and its GitHub Actions to reproduce the issue:
https://github.com/rozsasarpi/sphinx_singledispatch
singledispatch
andautodoc_mock_imports
are both used: https://github.com/rozsasarpi/sphinx_singledispatch/runs/6999430788?check_suite_focus=true#step:5:15autodoc_mock_imports
: https://github.com/rozsasarpi/sphinx_singledispatch/runs/6999461954?check_suite_focus=truesingledispatch
: https://github.com/rozsasarpi/sphinx_singledispatch/runs/6999520591?check_suite_focus=trueExpected behavior
make html
finishes the build.Your project
https://github.com/rozsasarpi/sphinx_singledispatch
Screenshots
OS
Linux/Win
Python version
3.8, 3.9
Sphinx version
5.0.2/4.5.0
Sphinx extensions
sphinx.ext.autodoc, myst_parser
Extra tools
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: