mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-26 19:04:32 +02:00
Type annotation for records on insert_all/upsert_all, refs #672
This commit is contained in:
parent
975b6c6191
commit
a186c1356c
1 changed files with 9 additions and 2 deletions
|
|
@ -31,6 +31,7 @@ from typing import (
|
|||
Dict,
|
||||
Generator,
|
||||
Iterable,
|
||||
Sequence,
|
||||
Union,
|
||||
Optional,
|
||||
List,
|
||||
|
|
@ -3321,7 +3322,10 @@ class Table(Queryable):
|
|||
|
||||
def insert_all(
|
||||
self,
|
||||
records,
|
||||
records: Union[
|
||||
Iterable[Dict[str, Any]],
|
||||
Iterable[Sequence[Any]],
|
||||
],
|
||||
pk=DEFAULT,
|
||||
foreign_keys=DEFAULT,
|
||||
column_order=DEFAULT,
|
||||
|
|
@ -3576,7 +3580,10 @@ class Table(Queryable):
|
|||
|
||||
def upsert_all(
|
||||
self,
|
||||
records,
|
||||
records: Union[
|
||||
Iterable[Dict[str, Any]],
|
||||
Iterable[Sequence[Any]],
|
||||
],
|
||||
pk=DEFAULT,
|
||||
foreign_keys=DEFAULT,
|
||||
column_order=DEFAULT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue