Skip to content

Commit 39e4c8f

Browse files
lint fix
1 parent bb538d9 commit 39e4c8f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/cqrs/outbox/sqlalchemy.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
try:
1313
import sqlalchemy
14+
1415
from sqlalchemy import func
1516
from sqlalchemy.orm import Mapped, mapped_column, DeclarativeMeta, registry
1617
from sqlalchemy.ext.asyncio import session as sql_session
@@ -19,7 +20,7 @@
1920
raise ImportError(
2021
"You are trying to use SQLAlchemy outbox implementation, "
2122
"but 'sqlalchemy' is not installed. "
22-
"Please install it using: pip install python-cqrs[sqlalchemy]"
23+
"Please install it using: pip install python-cqrs[sqlalchemy]",
2324
)
2425

2526

@@ -36,6 +37,7 @@
3637

3738
class BinaryUUID(sqlalchemy.TypeDecorator):
3839
"""Stores the UUID as a native UUID in Postgres and as BINARY(16) in other databases (MySQL)."""
40+
3941
impl = sqlalchemy.BINARY(16)
4042
cache_ok = True
4143

@@ -53,7 +55,7 @@ def process_bind_param(self, value, dialect):
5355
if isinstance(value, str):
5456
value = uuid.UUID(value)
5557
if isinstance(value, uuid.UUID):
56-
return value.bytes # For MySQL return 16 bytes
58+
return value.bytes # For MySQL return 16 bytes
5759
return value
5860

5961
def process_result_value(self, value, dialect):

0 commit comments

Comments
 (0)