Issue with type signature of DBAPI Connection

15 views
Skip to first unread message

William Hakim

unread,
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:

https://github.com/sqlalchemy/sqlalchemy/blob/main/lib/sqlalchemy/engine/interfaces.py#L194

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.

Will

Mike Bayer

unread,
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 http://stackoverflow.com/help/mcve 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 sqlalchemy+...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages