refactor: simplify type annotations

This commit is contained in:
Felix Spöttel
2023-06-28 13:17:55 +02:00
parent da751865e0
commit d2223206be
9 changed files with 42 additions and 52 deletions

View File

@@ -1,5 +1,3 @@
from typing import Dict
from fastapi.testclient import TestClient
from app.web.main import app
@@ -22,6 +20,6 @@ def test_incorrect_api_key() -> None:
assert res.status_code == 401
def test_existing_api_key(auth_headers: Dict[str, str]) -> None:
def test_existing_api_key(auth_headers: dict[str, str]) -> None:
res = client.get("/api/v1", headers=auth_headers)
assert res.status_code == 204