Skip to content

Commit

Permalink
🐛 补全类型标注
Browse files Browse the repository at this point in the history
  • Loading branch information
AzideCupric committed Jul 16, 2024
1 parent c14a299 commit d5bd87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_bison/platform/bilibili/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}")
Expand Down

0 comments on commit d5bd87f

Please sign in to comment.