File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ class PSQLPyEngine(Engine[PostgresTransaction]):
352
352
engine_type = "postgres"
353
353
min_version_number = 10
354
354
355
- def __init__ ( # noqa: PLR0913
355
+ def __init__ (
356
356
self : Self ,
357
357
config : dict [str , Any ],
358
358
extensions : Sequence [str ] = ("uuid-ossp" ,),
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def skip_test_extra_nodes() -> None:
16
16
test_engine = engine_finder ()
17
17
assert test_engine is not None
18
18
19
- test_engine = typing .cast (PSQLPyEngine , test_engine )
19
+ test_engine = typing .cast (" PSQLPyEngine" , test_engine )
20
20
21
21
EXTRA_NODE : typing .Final = MagicMock (spec = PSQLPyEngine (config = test_engine .config )) # noqa: N806
22
22
EXTRA_NODE .run_querystring = AsyncMock (return_value = [])
Original file line number Diff line number Diff line change 11
11
12
12
13
13
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 )
15
15
16
16
await engine .start_connection_pool ()
17
17
assert engine .pool is not None
@@ -45,7 +45,7 @@ async def get_data() -> None:
45
45
46
46
47
47
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 )
49
49
50
50
# Deliberate typo ('nnn'):
51
51
await engine .start_connnection_pool ()
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ async def get_transaction_ids() -> list[str]:
93
93
94
94
async def test_transaction_exists () -> None :
95
95
"""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 )
97
97
98
98
async with engine .transaction ():
99
99
assert engine .transaction_exists ()
You can’t perform that action at this time.
0 commit comments