From 371388ecbe28bec74a2775392e440180b6c5bf39 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 11 Oct 2019 17:43:32 +0100 Subject: [PATCH] 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. --- doc/manual/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/manual/conf.py b/doc/manual/conf.py index 2243cad21..3b52040ad 100644 --- a/doc/manual/conf.py +++ b/doc/manual/conf.py @@ -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)