Is there a standard or best practice in Sphinx for providing more exact specifications for composite Python data types? For example, I have a function that returns a dict
mapping str
to str
and am using numpydoc
style. Should I do something like:
Returns
-------
out : dict of str to str
or possibly dict of str: str
?
For lists where the type of content is known, I've noticed that NumPy uses the format
foo : list of int
Is there a standard or best practice to follow for this common use case?