diff options
author | 2021-08-23 20:20:32 -0700 | |
---|---|---|
committer | 2021-08-23 20:20:32 -0700 | |
commit | e34d4cacb903cb155236c1c1c945d6159869fb59 (patch) | |
tree | 94235f95d8a394d5c18aea769bbfe11208d57f3e | |
parent | Time: check timestamp for None only rather than if it's falsy (diff) |
Time: put region comments around overloads
-rw-r--r-- | bot/utils/time.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/utils/time.py b/bot/utils/time.py index 29fc46d56..005608beb 100644 --- a/bot/utils/time.py +++ b/bot/utils/time.py @@ -79,6 +79,7 @@ def discord_timestamp(timestamp: Timestamp, format: TimestampFormats = Timestamp return f"<t:{timestamp}:{format.value}>" +# region humanize_delta overloads @overload def humanize_delta( arg1: Union[relativedelta, Timestamp], @@ -119,6 +120,7 @@ def humanize_delta( absolute: bool = True, ) -> str: ... +# endregion def humanize_delta( |