diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py index e46335a82e..81d39ab8d1 100644 --- a/discord/ext/tasks/__init__.py +++ b/discord/ext/tasks/__init__.py @@ -586,7 +586,9 @@ def _get_next_sleep_time(self) -> datetime.datetime: self._time_index += 1 if ( next_time - > datetime.datetime.now(next_time.tzinfo or datetime.timezone.utc).timetz() + > datetime.datetime.now( + next_time.tzinfo or datetime.timezone.utc + ).timetz() ): return datetime.datetime.combine( datetime.datetime.now(next_time.tzinfo or datetime.timezone.utc),