chore: add types

This commit is contained in:
Matt 2023-06-14 17:40:16 +01:00
parent dc98d3305e
commit d362204cd8
2 changed files with 4 additions and 3 deletions

View File

@ -2,8 +2,9 @@
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
},
"python.formatting.provider": "none",
"python.formatting.provider": "black",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"python.linting.enabled": true
}

View File

@ -25,7 +25,7 @@ class AuthBearer(HTTPBearer):
elif not credentials:
raise HTTPException(status_code=403, detail="Invalid authorization code.")
async def authenticate(self, token, commons):
async def authenticate(self, token: str, commons: CommonsDep):
if os.environ.get("AUTHENTICATE") == "false":
return self.get_test_user()
elif verify_token(token):