From 146a349d81023805264f81643db50a5281da90da Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 5 Jan 2022 12:41:32 -0500 Subject: Update Black's target-version to py37 ### Description Black's `target-version` was still set to `['py27', 'py36']`. Set it to `[py37]` instead. Also update Black and other pre-commit hooks and re-format with Black. ### Checklist This pull request is: - [ ] A documentation / typographical 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: #7536 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7536 Pull-request-sha: b3aedf5570d7e0ba6c354e5989835260d0591b08 Change-Id: I8be85636fd2c9449b07a8626050c8bd35bd119d5 --- lib/sqlalchemy/ext/asyncio/session.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/sqlalchemy/ext/asyncio/session.py') diff --git a/lib/sqlalchemy/ext/asyncio/session.py b/lib/sqlalchemy/ext/asyncio/session.py index 9beba2ee0..3b53585dd 100644 --- a/lib/sqlalchemy/ext/asyncio/session.py +++ b/lib/sqlalchemy/ext/asyncio/session.py @@ -190,7 +190,7 @@ class AsyncSession(ReversibleProxy): params=None, execution_options=util.EMPTY_DICT, bind_arguments=None, - **kw + **kw, ): """Execute a statement and return a buffered :class:`_engine.Result` object. @@ -214,7 +214,7 @@ class AsyncSession(ReversibleProxy): params=params, execution_options=execution_options, bind_arguments=bind_arguments, - **kw + **kw, ) async def scalar( @@ -223,7 +223,7 @@ class AsyncSession(ReversibleProxy): params=None, execution_options=util.EMPTY_DICT, bind_arguments=None, - **kw + **kw, ): """Execute a statement and return a scalar result. @@ -238,7 +238,7 @@ class AsyncSession(ReversibleProxy): params=params, execution_options=execution_options, bind_arguments=bind_arguments, - **kw + **kw, ) return result.scalar() @@ -248,7 +248,7 @@ class AsyncSession(ReversibleProxy): params=None, execution_options=util.EMPTY_DICT, bind_arguments=None, - **kw + **kw, ): """Execute a statement and return scalar results. @@ -269,7 +269,7 @@ class AsyncSession(ReversibleProxy): params=params, execution_options=execution_options, bind_arguments=bind_arguments, - **kw + **kw, ) return result.scalars() @@ -307,7 +307,7 @@ class AsyncSession(ReversibleProxy): params=None, execution_options=util.EMPTY_DICT, bind_arguments=None, - **kw + **kw, ): """Execute a statement and return a streaming :class:`_asyncio.AsyncResult` object.""" @@ -325,7 +325,7 @@ class AsyncSession(ReversibleProxy): params=params, execution_options=execution_options, bind_arguments=bind_arguments, - **kw + **kw, ) return _result.AsyncResult(result) @@ -335,7 +335,7 @@ class AsyncSession(ReversibleProxy): params=None, execution_options=util.EMPTY_DICT, bind_arguments=None, - **kw + **kw, ): """Execute a statement and return a stream of scalar results. @@ -356,7 +356,7 @@ class AsyncSession(ReversibleProxy): params=params, execution_options=execution_options, bind_arguments=bind_arguments, - **kw + **kw, ) return result.scalars() -- cgit v1.2.1