jbms / sphinx-immaterial

Adaptation of the popular mkdocs-material material design theme to the sphinx documentation system
https://jbms.github.io/sphinx-immaterial/
Other
203 stars 32 forks source link

local variable 'orig_ast_parse' referenced before assignment #195

Closed unlimblue closed 1 year ago

unlimblue commented 1 year ago
sphinx_immaterial/apidoc/python/type_annotation_transforms.py", line 245, in _parse_annotation
    sphinx.domains.python.ast_parse = orig_ast_parse
UnboundLocalError: local variable 'orig_ast_parse' referenced before assignment
2bndy5 commented 1 year ago

can you provide steps to reproduce?

jbms commented 1 year ago

I think this occurs with Sphinx 6 --- I created a PR to fix this, but unfortunately it requires some revision still:

https://github.com/jbms/sphinx-immaterial/pull/181

jbms commented 1 year ago

Fixed by #181.