tox-dev / sphinx-autodoc-typehints

Type hints support for the Sphinx autodoc extension
MIT License
562 stars 106 forks source link

Cannot resolve forward reference in type annotations of "p1.my_class.Subclass": name 'MyEnum' is not defined #381

Open nbro10 opened 1 year ago

nbro10 commented 1 year ago

Please, see https://github.com/sphinx-doc/sphinx/issues/11460 first.

So, after having read that, you should know that someone suggested me to open the same issue here. I don't know if this is related to sphinx-autodoc-typehints, but I'm opening it here in case it's and in case you know a solution or I'd like to tackle the problem.

gaborbernat commented 1 year ago

PR welcome.

nbro10 commented 1 year ago

I'm not familiar with this codebase. However, once I have some time, I'll start to check it and see if I can provide a solution. I'll let you know (if I don't forget).

benbovy commented 1 month ago

xref https://github.com/sphinx-doc/sphinx/issues/11460#issuecomment-2404521778