Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Oct 25, 2024
1 parent 4900c48 commit 897588b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Union
from typing import Any, Union, List
from typing_extensions import Literal
from supertokens_python.exceptions import raise_bad_input_exception
from supertokens_python.recipe.dashboard.interfaces import APIInterface, APIOptions
Expand All @@ -8,7 +8,7 @@


class OkResponse(APIResponse):
def __init__(self, roles: list[str]):
def __init__(self, roles: List[str]):
self.status: Literal["OK"] = "OK"
self.roles = roles

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, Union
from typing import Any, Dict, Union, List
from supertokens_python.exceptions import raise_bad_input_exception
from supertokens_python.recipe.dashboard.interfaces import APIInterface, APIOptions
from supertokens_python.recipe.userroles.asyncio import get_permissions_for_role
Expand All @@ -12,7 +12,7 @@


class OkPermissionsForRoleResponse(APIResponse):
def __init__(self, permissions: list[str]):
def __init__(self, permissions: List[str]):
self.status = "OK"
self.permissions = permissions

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Union
from typing import Any, Union, List
from typing_extensions import Literal
from supertokens_python.recipe.dashboard.interfaces import APIInterface, APIOptions
from supertokens_python.recipe.userroles.asyncio import get_all_roles
Expand All @@ -7,7 +7,7 @@


class OkResponse(APIResponse):
def __init__(self, roles: list[str]):
def __init__(self, roles: List[str]):
self.status: Literal["OK"] = "OK"
self.roles = roles

Expand Down
3 changes: 2 additions & 1 deletion supertokens_python/recipe/dashboard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# under the License.
from __future__ import annotations

from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Union, List, Literal
from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Union, List
from typing_extensions import Literal
from supertokens_python.recipe.accountlinking.recipe import AccountLinkingRecipe

if TYPE_CHECKING:
Expand Down
3 changes: 2 additions & 1 deletion tests/auth-react/django3x/mysite/store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import Any, Dict, List, Literal, Optional, Union
from typing import Any, Dict, List, Optional, Union
from typing_extensions import Literal

latest_url_with_token = ""

Expand Down

0 comments on commit 897588b

Please sign in to comment.