diff options
| author | 2020-12-15 08:41:49 +0200 | |
|---|---|---|
| committer | 2020-12-15 08:41:49 +0200 | |
| commit | 13b031581763f080c2415ac2bd76e2ad40aeb8dc (patch) | |
| tree | 1cbfdd2219c56c4cf8f5a590ad2e72cf3b63bc75 /backend/authentication/user.py | |
| parent | Update route levels parsing to work in all platforms (diff) | |
| parent | Fix f-string referencing the wrong name (diff) | |
Merge pull request #29 from python-discord/testing-strategies
Refactor `create_route_map`
Diffstat (limited to '')
| -rw-r--r-- | backend/authentication/user.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/authentication/user.py b/backend/authentication/user.py index afa243f..722c348 100644 --- a/backend/authentication/user.py +++ b/backend/authentication/user.py @@ -1,13 +1,12 @@ import typing as t -from abc import ABC from starlette.authentication import BaseUser -class User(BaseUser, ABC): +class User(BaseUser): """Starlette BaseUser implementation for JWT authentication.""" - def __init__(self, token: str, payload: t.Dict) -> None: + def __init__(self, token: str, payload: dict[str, t.Any]) -> None: self.token = token self.payload = payload |