Skip to content

Commit c1fc896

Browse files
fix: resolve CI lint and mypy errors
- test_chain_concurrency.py: fix isort ordering (_MAX_CHAIN_RETRIES before _is_integrity_error, merge third-party/first-party groups) - storage_pg.py: add type: ignore for untyped DDL call (SQLAlchemy stubs)
1 parent bf4fcf9 commit c1fc896

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

reference/python/src/qp_capsule/storage_pg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class CapsuleModelPG(PGBase):
7171
event.listen(
7272
CapsuleModelPG.__table__,
7373
"after_create",
74-
DDL(
74+
DDL( # type: ignore[no-untyped-call]
7575
"CREATE UNIQUE INDEX IF NOT EXISTS uq_capsule_global_sequence "
7676
"ON quantumpipes_capsules (sequence) WHERE tenant_id IS NULL"
7777
).execute_if(dialect="postgresql"),

reference/python/tests/test_chain_concurrency.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
from unittest.mock import AsyncMock
2222

2323
import pytest
24-
2524
from qp_capsule.capsule import Capsule, TriggerSection
26-
from qp_capsule.chain import CapsuleChain, _is_integrity_error, _MAX_CHAIN_RETRIES
25+
from qp_capsule.chain import CapsuleChain, _MAX_CHAIN_RETRIES, _is_integrity_error
2726
from qp_capsule.exceptions import CapsuleError, ChainConflictError, ChainError, StorageError
2827

2928

0 commit comments

Comments
 (0)