From 832c2139a50db19b9cc9e86927683c3aaa900253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Tue, 10 May 2022 00:37:43 +0200 Subject: [PATCH] Fix List from Python 3.8 --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index a362465..f643cf9 100644 --- a/bot.py +++ b/bot.py @@ -1,7 +1,7 @@ from asyncio import new_event_loop from datetime import timedelta from os import environ -from typing import Optional, Union +from typing import List, Optional, Union from disnake import Client, Guild, Member from dotenv import load_dotenv @@ -69,7 +69,7 @@ def make_oauth_session( host_url: str, token: Optional[str] = None, state: Optional[str] = None, - scope: Optional[list[str]] = None, + scope: Optional[List[str]] = None, ) -> OAuth2Session: print(host_url + OAUTH2_REDIRECT_URI) return OAuth2Session(