diff --git a/nonebot_bison/platform/bilibili/retry.py b/nonebot_bison/platform/bilibili/retry.py index 5fa58e405..d0142d320 100644 --- a/nonebot_bison/platform/bilibili/retry.py +++ b/nonebot_bison/platform/bilibili/retry.py @@ -138,7 +138,7 @@ def reset_all(self): self.backoff_count = 0 self.backoff_finish_time = None - def reach_max(self, key: Literal["refresh", "backoff"]): + def reach_max(self, key: Literal["refresh", "backoff"]) -> bool: attr_name = f"{key}_count" if hasattr(self, attr_name): logger.trace(f"reach_max current {attr_name}: {getattr(self, attr_name)}")