Issue with type signature of DBAPI Connection

Skip to first unread message

William Hakim

Nov 7, 2023, 9:46:31 PM11/7/23
to sqlalchemy
I was recently using the DBAPI Cursor, and it seems to me that the type signature of the `executemany()` function is incorrect:

The given type signature for the second argument to `executemany()` is ` "Sequence[Sequence[Sequence[Any]] | Sequence[Mapping[str, Any]]]"`, however this doesn't appear right (and doesn't actually work) - it seems like it should instead be `Sequence[Sequence[Any]] | Sequence[Mapping[str, Any]]`.

Happy to open a Pull Request if this is indeed an issue.


Mike Bayer

Nov 7, 2023, 11:08:17 PM11/7/23
to noreply-spamdigest via sqlalchemy
there does seem to be an extra Sequence on the outside that should be removed, please open an issue.
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See for a full description.
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to

Reply all
Reply to author
0 new messages