From 72ec88aa3c24e8bd411e8b80584eab7f5e8524ea Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Sun, 21 Apr 2024 03:55:33 +0200 Subject: [PATCH] Fix humanize_timedelta() docstring to account for negative values (#6360) --- redbot/core/utils/chat_formatting.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/redbot/core/utils/chat_formatting.py b/redbot/core/utils/chat_formatting.py index 278b9a35e4f..b13d869dc02 100644 --- a/redbot/core/utils/chat_formatting.py +++ b/redbot/core/utils/chat_formatting.py @@ -530,8 +530,10 @@ def humanize_timedelta( This works with either a timedelta object or a number of seconds. - Fractional values will be omitted, and values less than 1 second - an empty string. + Fractional values will be omitted. + + Values that are less than 1 second but greater than -1 second + will be an empty string. Parameters ----------