forked from M-Labs/artiq
1
0
Fork 0

doc: Re-fix ARTIQ type hint formatting (#714)

This adapts the previous monkey patch for the changed location of the
attribute rendering code in Sphinx 2.0.
This commit is contained in:
David Nadlinger 2019-10-11 17:43:32 +01:00
parent 9c5ff4fc04
commit 371388ecbe
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ import sphinx_rtd_theme
# Hack-patch Sphinx so that ARTIQ-Python types are correctly printed # Hack-patch Sphinx so that ARTIQ-Python types are correctly printed
# See: https://github.com/m-labs/artiq/issues/741 # See: https://github.com/m-labs/artiq/issues/741
from sphinx.ext import autodoc from sphinx.ext import autodoc
autodoc.repr = str from sphinx.util import inspect
autodoc.repr = inspect.repr = str
# we cannot use autodoc_mock_imports (does not help with argparse) # we cannot use autodoc_mock_imports (does not help with argparse)