-
Notifications
You must be signed in to change notification settings - Fork 101
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
Support class variables #32
Comments
This library was created prior to the introduction of class variables. The fact that there is no support is not a bug, but it might be nice to add it at some point. |
These are not class variables, but instance variables. Anyway, this is a feature I was looking for too. |
It would be possible to implement for class variables because the type hints are stored in This is not the case for instance variables. Since the type hints are analyzed in the current context and Sphinx doesn't create actual instances of the classes, we can't retrieve which variables were defined in the |
Unfortunately I have been busy with other projects since the last release of sphinx-autodoc-typehints 5 weeks ago. I will get to this eventually but a quality PR would surely expedite things. |
+1 |
This issue looks a lot like #44, for which I just posted at least a partial solution from Sphinx 3 (dataclasses). Though I've not tested it with variables defined in init. |
A PR for this would we welcome. |
I think I resolved this in #299. |
The Code below produces the output in the image.
The type of pw (List[int]) is correct but the types of encodeMap and decodeMap are missing.
The text was updated successfully, but these errors were encountered: