-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent behavior of fully qualified type hints. #351
Comments
@gaborbernat quick question regarding [edit: just saw the AFW banner - no rush] |
Can't help you, if you find the problem, PR welcome. |
Seems stalled. |
FYI this is still an issue, it isn't completed. I have provided all the info needed to reproduce it, but let me know if I can provide you with anything else too. |
A PR is welcome, 👍 note we don't plan to do the work for you, but if you fill a PR we'll help with that. |
I don't know what is happening under the hood, so unfortunately I can't contribute with a PR. I opened an issue because I feel like this is a bug to do with the repo. |
It's a TODO list for the community; I'm just the maintainer here, not the developer in residence 😊 we can keep it open if you think we have all the info you wanted. |
Yes, I think all the info needed to reproduce is provided. PS: I know it's a community project, and that's why I never asked that someone in particular solves it. I only raised the fyi because you closed it as "completed" without the bug having actually been fixed. |
In
conf.py
I have settypehints_fully_qualified = False
.However, while most type hints adhere to this, there are some cases where they appear fully qualified for no apparent reason.
For example
gets interpreted as
while
looks alright
It also doesn't work well at all with
numpy.typing.ArrayLike
, as it always fully qualifies it:becomes
This is the rest of the config for
autodoc
andautodoc_typehints
:I use Sphinx 6.2.1 and Python 3.11 on Ubuntu 22.04 LTS.
sphinx_autodoc_typehints.__version__ = '1.21.8'
.The text was updated successfully, but these errors were encountered: