mirror of https://github.com/m-labs/artiq.git
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:
parent
9c5ff4fc04
commit
371388ecbe
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue