Skip to content

Commit f9feea8

Browse files
committed
Fix format
1 parent eacd7c8 commit f9feea8

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

pgmq_sqlalchemy/queue.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,21 +124,14 @@ def __init__(
124124
# create pgmq extension if not exists
125125
self._check_pgmq_ext()
126126

127-
128127
def _check_pgmq_ext(self) -> None:
129128
"""Check if the pgmq extension exists."""
130-
self._execute_operation(
131-
PGMQOperation.check_pgmq_ext,
132-
session=None,
133-
commit=True
134-
)
129+
self._execute_operation(PGMQOperation.check_pgmq_ext, session=None, commit=True)
135130

136131
def _check_pg_partman_ext(self) -> None:
137132
"""Check if the pg_partman extension exists."""
138133
self._execute_operation(
139-
PGMQOperation.check_pg_partman_ext,
140-
session=None,
141-
commit=True
134+
PGMQOperation.check_pg_partman_ext, session=None, commit=True
142135
)
143136

144137
def _execute_operation(
@@ -166,7 +159,6 @@ def _execute_operation(
166159
return op_sync(*args, session=s, commit=commit, **kwargs)
167160
return op_sync(*args, session=session, commit=commit, **kwargs)
168161

169-
170162
async def _execute_async_operation(
171163
self,
172164
op_async,
@@ -189,8 +181,8 @@ async def _execute_async_operation(
189181
"""
190182
if session is None:
191183
async with self.session_maker() as s:
192-
return (await op_async(*args, session=s, commit=commit, **kwargs))
193-
return (await op_async(*args, session=session, commit=commit, **kwargs))
184+
return await op_async(*args, session=s, commit=commit, **kwargs)
185+
return await op_async(*args, session=session, commit=commit, **kwargs)
194186

195187
def create_queue(
196188
self,

0 commit comments

Comments
 (0)