You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
autodoc_type_aliases doesn't work when autodoc_typehints is set to "description".
To Reproduce
types.py
from __future__ importannotationsfromtypingimportAny, DictJSONObject=Dict[str, Any]
defsphinx_doc(data: JSONObject) ->JSONObject:
"""Does it work. Args: data: Does it args. Returns: Does it work in return. """return {}
Describe the bug
autodoc_type_aliases doesn't work when autodoc_typehints is set to "description".
To Reproduce
types.py
conf.py
I get,
Then if I remove
autodoc_typehints = 'description'
I get,
Expected behavior
types.JSONObject
instead ofDict[str, Any]
in both cases.Environment info
The text was updated successfully, but these errors were encountered: