Skip to content

Commit 470a3d9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f5fbc02 commit 470a3d9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: psqlpy_piccolo/engine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class PSQLPyEngine(Engine[PostgresTransaction]):
352352
engine_type = "postgres"
353353
min_version_number = 10
354354

355-
def __init__( # noqa: PLR0913
355+
def __init__(
356356
self: Self,
357357
config: dict[str, Any],
358358
extensions: Sequence[str] = ("uuid-ossp",),

Diff for: tests/test_extra_node.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def skip_test_extra_nodes() -> None:
1616
test_engine = engine_finder()
1717
assert test_engine is not None
1818

19-
test_engine = typing.cast(PSQLPyEngine, test_engine)
19+
test_engine = typing.cast("PSQLPyEngine", test_engine)
2020

2121
EXTRA_NODE: typing.Final = MagicMock(spec=PSQLPyEngine(config=test_engine.config)) # noqa: N806
2222
EXTRA_NODE.run_querystring = AsyncMock(return_value=[])

Diff for: tests/test_pool.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
async def test_create_pool() -> None:
14-
engine: typing.Final = typing.cast(PSQLPyEngine, Manager._meta.db)
14+
engine: typing.Final = typing.cast("PSQLPyEngine", Manager._meta.db)
1515

1616
await engine.start_connection_pool()
1717
assert engine.pool is not None
@@ -45,7 +45,7 @@ async def get_data() -> None:
4545

4646

4747
async def test_proxy_methods() -> None:
48-
engine: typing.Final = typing.cast(PSQLPyEngine, Manager._meta.db)
48+
engine: typing.Final = typing.cast("PSQLPyEngine", Manager._meta.db)
4949

5050
# Deliberate typo ('nnn'):
5151
await engine.start_connnection_pool()

Diff for: tests/test_transaction.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def get_transaction_ids() -> list[str]:
9393

9494
async def test_transaction_exists() -> None:
9595
"""Make sure we can detect when code is within a transaction."""
96-
engine: typing.Final = typing.cast(PSQLPyEngine, Manager._meta.db)
96+
engine: typing.Final = typing.cast("PSQLPyEngine", Manager._meta.db)
9797

9898
async with engine.transaction():
9999
assert engine.transaction_exists()

0 commit comments

Comments
 (0)