mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 19:04:02 +08:00
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
|
||||
# See: https://github.com/m-labs/artiq/issues/741
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user