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
defformat_unit(value, unit):
""" Formats the given value as a human readable string using the given units. :param float|int value: a numeric value :param str unit: the unit for the value (kg, m, etc.) :rtype: str """returnf"{value}{unit}"
We produce this
fromtypingimportUniondefformat_unit(value: Union[float, int], unit: str) ->str:
""" Formats the given value as a human readable string using the given units. :param value: a numeric value :param unit: the unit for the value (kg, m, etc.) """returnf"{value}{unit}"
wdyt
The text was updated successfully, but these errors were encountered:
I would also like a flag that disables types for parameters / return types (especially for Google style docstrings), so that sphinx-autodoc-typehints can do its thing.
https://pypi.org/project/sphinx-autodoc-typehints/
Instead of
We produce this
wdyt
The text was updated successfully, but these errors were encountered: