What is the recommended way of adding a docstring for the keys of a dictionary? I am using python 2.7 and Sphinx.
For instance, in the following code, how should I mention the keys 'a' and 'b' for my_dict? (But maybe it not necessary to go in such details):
def my_func(my_dict):
"""
:param dict {'a': float, 'b': str} my_dict: description of param
"""
pass
The implementation above seems to be not recognized by my Pycharm editor
EDIT: I also read this post, but the answer does not mention how to specify the 'names' of the keys