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
{{ message }}
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
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 """return'{} {}'.format(value, unit)
I'm adding this to the Pre-1.0.0 milestone. My reasoning is that if you call help() providing a class, function or property Python will display the relevant docstring. This could help both competitors and implementors to discover more of the API without having to refer to the docs.
Happy to discuss this addition if anyone disagrees.
e.g
We should consider this: https://pypi.org/project/sphinx-autodoc-typehints/
The text was updated successfully, but these errors were encountered: