bot: db: add missing type annotation for bulk_update
All checks were successful
/ test (push) Successful in 18s
All checks were successful
/ test (push) Successful in 18s
Signed-off-by: Max R. Carrara <max@aequito.sh>
This commit is contained in:
parent
80918f7a42
commit
1dfa03bc17
1 changed files with 4 additions and 1 deletions
|
|
@ -128,7 +128,10 @@ class BaseModel(peewee.Model):
|
|||
|
||||
@classmethod
|
||||
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]:
|
||||
now = datetime.now()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue