Fix List from Python 3.8
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2022-05-10 00:37:43 +02:00
parent 70b5ae1da8
commit 832c2139a5

4
bot.py
View File

@ -1,7 +1,7 @@
from asyncio import new_event_loop from asyncio import new_event_loop
from datetime import timedelta from datetime import timedelta
from os import environ from os import environ
from typing import Optional, Union from typing import List, Optional, Union
from disnake import Client, Guild, Member from disnake import Client, Guild, Member
from dotenv import load_dotenv from dotenv import load_dotenv
@ -69,7 +69,7 @@ def make_oauth_session(
host_url: str, host_url: str,
token: Optional[str] = None, token: Optional[str] = None,
state: Optional[str] = None, state: Optional[str] = None,
scope: Optional[list[str]] = None, scope: Optional[List[str]] = None,
) -> OAuth2Session: ) -> OAuth2Session:
print(host_url + OAUTH2_REDIRECT_URI) print(host_url + OAUTH2_REDIRECT_URI)
return OAuth2Session( return OAuth2Session(