Closed rocco8773 closed 4 years ago
I had the same problem and I found that the problem is coming because of some 'not so simple' typing e.g.:
def funct(n1: int, n2: str ) -> List[int, str]:
the solution I found is to use the extension typehints https://github.com/agronholm/sphinx-autodoc-typehints
would either of you interested in opening a PR with the fix?
I also vaguely recall the sunpy folks run into a sphinx issue, too with 3.0, maybe it was the same? cc @Cadair
@bsipocz My knowledge of sphinx-automodapi
's inner workings is limited, but I can give it the old college try. If it's as simple as the example I linked, then it should be straight forward.
@rocco8773 - thanks!
When trying to fix our documentation builds on https://github.com/PlasmaPy/PlasmaPy/pull/780 I discovered there's an incompatibility with
sphinx
v3.0.0
(see error log below). When I freezesphinx
tov2.4.4
or excludesphinx_automodapi.smart_resolver
, then the error resolves. I think this is also related to #98 and looks very similar to https://github.com/sphinx-doc/sphinx/issues/3350, which was resolved like this https://github.com/sphinx-doc/sphinx/commit/1498897278fdc682025e0169b818429f112996c3.Error log