py typing is cursed
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user