From: William Henry Hakim Date: Thu, 16 Nov 2023 14:11:26 +0000 (-0500) Subject: Update type annotation for DBAPI Cursor's executemany() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55bf2bf971cda82c2e3f58e9c211c74c3a6394a8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Update type annotation for DBAPI Cursor's executemany() ### 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: #` 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: #` 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 --- diff --git a/lib/sqlalchemy/engine/interfaces.py b/lib/sqlalchemy/engine/interfaces.py index ea1f27d062..4bf0d3e9e7 100644 --- a/lib/sqlalchemy/engine/interfaces.py +++ b/lib/sqlalchemy/engine/interfaces.py @@ -194,7 +194,7 @@ class DBAPICursor(Protocol): def executemany( self, operation: Any, - parameters: Sequence[_DBAPIMultiExecuteParams], + parameters: _DBAPIMultiExecuteParams, ) -> Any: ...