bot: db: add missing type annotation for bulk_update
All checks were successful
/ test (push) Successful in 18s

Signed-off-by: Max R. Carrara <max@aequito.sh>
This commit is contained in:
Max R. Carrara 2025-03-11 22:57:33 +01:00
parent 80918f7a42
commit 1dfa03bc17

View file

@ -128,7 +128,10 @@ class BaseModel(peewee.Model):
@classmethod @classmethod
def bulk_update( def bulk_update(
cls, model_list: Iterable[Self], fields: Iterable, batch_size: int | None = None cls,
model_list: Iterable[Self],
fields: Iterable[peewee.Field | str],
batch_size: int | None = None,
): ):
def lazy(models: Iterable[Self]) -> Iterable[Self]: def lazy(models: Iterable[Self]) -> Iterable[Self]:
now = datetime.now() now = datetime.now()