py typing is cursed

This commit is contained in:
2025-12-22 19:16:53 +02:00
parent 7856b2bf3a
commit 0caaf7cd10
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ def authenticate_door(wrapped):
@app.route("/allowed")
@authenticate_door
async def view_doorboy_uids(request):
users = List[str]
users: List[str] = []
# authorize
key = request.headers.get("KEY")

View File

@@ -10,7 +10,7 @@ def users_with_group(group: str) -> List[str]:
config.load_incluster_config()
api_instance = client.CustomObjectsApi()
users = List[str]
users: List[str] = []
ret = api_instance.list_namespaced_custom_object(
"codemowers.cloud", "v1beta1", OIDC_USERS_NAMESPACE, "oidcusers"