]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update type annotation for DBAPI Cursor's executemany()
authorWilliam Henry Hakim <williamhakim10@gmail.com>
Thu, 16 Nov 2023 14:11:26 +0000 (09:11 -0500)
committersqla-tester <sqla-tester@sqlalchemy.org>
Thu, 16 Nov 2023 14:11:26 +0000 (09:11 -0500)
### Description
As per https://groups.google.com/g/sqlalchemy/c/DkyffAgDmwM, fixes an issue with the DBAPI cursor's executemany() type signature.

### Checklist

This pull request is:

- [x] A documentation / typographical / small typing error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**

Closes: #10644
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10644
Pull-request-sha: 0a1fe849b54e35cd5e417da79556dc94be3a0abc

Change-Id: I3af344f052a2f306876a528c528b1bf9cc0bdaa6

lib/sqlalchemy/engine/interfaces.py

index ea1f27d0629b4f096a49d71533332377bc826f3d..4bf0d3e9e7d85bab9a34e63c634007561ecab752 100644 (file)
@@ -194,7 +194,7 @@ class DBAPICursor(Protocol):
     def executemany(
         self,
         operation: Any,
-        parameters: Sequence[_DBAPIMultiExecuteParams],
+        parameters: _DBAPIMultiExecuteParams,
     ) -> Any:
         ...