diff --git a/lso/routes/default.py b/lso/routes/default.py
index e79bf0251230ebc041599bd38411499c2359ab80..246850bb94afa56ec9bd9dfb8944c7dc54dc993b 100644
--- a/lso/routes/default.py
+++ b/lso/routes/default.py
@@ -16,8 +16,8 @@ router = APIRouter()
 class Version(BaseModel):
     """Simple model for returning a version number of both the API and the `goat-lso` module."""
 
-    api: VERSION_STRING  # type: ignore
-    module: VERSION_STRING  # type: ignore
+    api: VERSION_STRING  # type: ignore[valid-type]
+    module: VERSION_STRING  # type: ignore[valid-type]
 
 
 @router.get("/version")