File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 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]):
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" ,),
Original file line number Diff line number Diff 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 = [])
Original file line number Diff line number Diff line change 1111
1212
1313async 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
4747async 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 ()
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ async def get_transaction_ids() -> list[str]:
9393
9494async 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 ()
You can’t perform that action at this time.
0 commit comments