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
minimum_unit: The lowest unit that can be used. Options: "years", "months",
"days", "hours", "minutes", "seconds", "milliseconds" or "microseconds".
but the implementation will raise an exception if you try to use any value larger than "seconds":
tmp = Unit[minimum_unit.upper()]
if tmp not in (Unit.SECONDS, Unit.MILLISECONDS, Unit.MICROSECONDS):
raise ValueError(f"Minimum unit '{minimum_unit}' not supported")
Either update the docstring to only mention the last three options, or update the code to support the other units too.
The text was updated successfully, but these errors were encountered:
The docstring for
time_delta()
says this about theminimum_unit
argument:but the implementation will raise an exception if you try to use any value larger than
"seconds"
:Either update the docstring to only mention the last three options, or update the code to support the other units too.
The text was updated successfully, but these errors were encountered: