|
21 | 21 | import os |
22 | 22 | import pathlib |
23 | 23 | import sys |
| 24 | +import typing |
24 | 25 | from datetime import date |
25 | 26 | from functools import wraps |
26 | 27 | from textwrap import indent |
|
31 | 32 |
|
32 | 33 | # Currently disabling logging.INFO because of nodify, it would likely be best |
33 | 34 | # if we are only removing that one! |
34 | | -logging.disable(logging.INFO) |
| 35 | +_nodify_logging = logging.getLogger("nodify") |
| 36 | +_nodify_logging.setLevel(logging.WARNING) |
35 | 37 |
|
36 | 38 | _doc_root = pathlib.Path(__file__).absolute().parent |
37 | 39 | # If extensions (or modules to document with autodoc) are in another directory, |
@@ -977,7 +979,7 @@ def _setup_autodoc(app): |
977 | 979 | """Patch and fix autodoc so we get the correct formatting of the environment""" |
978 | 980 | from sphinx.ext import autodoc, autosummary |
979 | 981 | from sphinx.locale import _ |
980 | | - from sphinx.util import typing |
| 982 | + from sphinx.util import typing as sphinx_typing |
981 | 983 |
|
982 | 984 | # These subsequent class and methods originate from mpi4py |
983 | 985 | # which is released under BSD-3 clause. |
@@ -1023,7 +1025,7 @@ def update_content(self, more_content): |
1023 | 1025 | more_content.append(content, "") |
1024 | 1026 | more_content.append("", "") |
1025 | 1027 | if istypealias(obj, self.name): |
1026 | | - content = _("alias of %s") % typing.restify(obj) |
| 1028 | + content = _("alias of %s") % sphinx_typing.restify(obj) |
1027 | 1029 | more_content.append(content, "") |
1028 | 1030 | more_content.append("", "") |
1029 | 1031 | super().update_content(more_content) |
|
0 commit comments