mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 21:02:21 +01:00
chore(mypy): require full annotations outside tests, type the setup responses (#4795)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user