From 08d064ee05f2fe30bf518ff599dfc2feca9a1aef Mon Sep 17 00:00:00 2001 From: Hedy Li Date: Fri, 9 Oct 2020 08:52:40 +0000 Subject: update return type for `get_october_prs` it returns None when no PRs found, so I put that in `Union` with `List[dict]` --- bot/exts/halloween/hacktoberstats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index ab12bf1e..7db2d86a 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -223,7 +223,7 @@ class HacktoberStats(commands.Cog): return stats_embed @staticmethod - async def get_october_prs(github_username: str) -> List[dict]: + async def get_october_prs(github_username: str) -> Union[List[dict], None]: """ Query GitHub's API for PRs created during the month of October by github_username. -- cgit v1.2.3