From ce25489b3569ae616a95446faa691038d285422f Mon Sep 17 00:00:00 2001 From: Brooke Chalmers Date: Sun, 25 Sep 2022 16:50:31 -0400 Subject: [PATCH] use typing.List to support python < 3.9 --- flask_discord_interactions/models/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_discord_interactions/models/user.py b/flask_discord_interactions/models/user.py index 395677b..69cc256 100644 --- a/flask_discord_interactions/models/user.py +++ b/flask_discord_interactions/models/user.py @@ -1,5 +1,5 @@ import dataclasses -from typing import Optional +from typing import Optional, List from flask_discord_interactions.models.utils import LoadableDataclass @@ -111,7 +111,7 @@ class Member(User): joined_at: str = "" avatar: Optional[str] = None nick: Optional[str] = None - roles: Optional[list[str]] = None + roles: Optional[List[str]] = None premium_since: Optional[str] = None permissions: Optional[int] = None communication_disabled_until: Optional[str] = None