chore(mypy): require full annotations outside tests, type the setup responses (#4795)

This commit is contained in:
Sam Dornan
2026-09-26 15:31:00 -04:00
committed by GitHub
parent 71776206a1
commit 3750d6ff70
82 changed files with 476 additions and 311 deletions

View File

@@ -1,6 +1,7 @@
from collections.abc import Sequence
from typing import Any
from sqlalchemy import and_, delete, func, not_, select, update
from sqlalchemy import Result, and_, delete, func, not_, select, update
from sqlalchemy.orm import QueryableAttribute, Session, load_only
from sqlalchemy.sql import Delete, Select, Update
@@ -115,7 +116,7 @@ class DBUsersHandler(DBBaseHandler):
self,
id: int,
session: Session = None, # type: ignore[assignment]
):
) -> Result[Any]:
return session.execute(
delete(User)
.where(User.id == id)