From 47781b35dde795407ee53f238486a504b0d339ae Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 12 Sep 2022 18:38:40 +0000 Subject: [PATCH] Fix typing --- divent/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/divent/bot.py b/divent/bot.py index 17b6f49..2376103 100644 --- a/divent/bot.py +++ b/divent/bot.py @@ -78,7 +78,9 @@ def token_updater(token: str): session["oauth2_token"] = token -def make_session(token: Optional[Dict[str, str]], state=Optional[str]) -> OAuth2Session: +def make_session( + token: Optional[Dict[str, str]] = None, state: Optional[str] = None +) -> OAuth2Session: return OAuth2Session( client_id=OAUTH2_CLIENT_ID, token=token,