Skip to content

Commit ac0f099

Browse files
committed
fix: syntax issues
1 parent e2172c3 commit ac0f099

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

docs/fix_missing_references.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import annotations # noqa: INP001
1+
from __future__ import annotations
22

33
from typing import TYPE_CHECKING, Any
44

examples/basic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ async def sample_route(self, db_connection: AsyncConnection) -> HealthCheck:
2929

3030

3131
oracledb = OracleDatabasePlugin(
32-
config=AsyncDatabaseConfig(pool_config=AsyncPoolConfig(user="app", password="super-secret", dsn="localhost:1521/freepdb1"))) # noqa: S106
32+
config=AsyncDatabaseConfig(
33+
pool_config=AsyncPoolConfig(user="app", password="super-secret", dsn="localhost:1521/freepdb1") # noqa: S106
34+
)
35+
)
3336
app = Litestar(plugins=[oracledb], route_handlers=[SampleController])

src/litestar_oracledb/config/_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def provide_connection(
198198
self,
199199
state: State,
200200
scope: Scope,
201-
) -> Generator[Connection, None]:
201+
) -> Generator[Connection, None, None]:
202202
"""Create a connection instance.
203203
204204
Args:

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def sync_connection_pool(
8282

8383

8484
@pytest.fixture(name="sync_plugin")
85-
def sync_config(sync_connection_pool: ConnectionPool) -> Generator[SyncDatabaseConfig,None,None]:
85+
def sync_config(sync_connection_pool: ConnectionPool) -> Generator[SyncDatabaseConfig, None, None]:
8686
"""App fixture.
8787
8888
Returns:
@@ -95,7 +95,7 @@ def sync_config(sync_connection_pool: ConnectionPool) -> Generator[SyncDatabaseC
9595

9696

9797
@pytest.fixture(name="async_config")
98-
def async_config(async_connection_pool: AsyncConnectionPool) -> Generator[AsyncDatabaseConfig,None,None]:
98+
def async_config(async_connection_pool: AsyncConnectionPool) -> Generator[AsyncDatabaseConfig, None, None]:
9999
"""App fixture.
100100
101101
Returns:
@@ -131,7 +131,7 @@ async def plugin(request: FixtureRequest) -> AsyncGenerator[OracleDatabasePlugin
131131

132132

133133
@pytest.fixture(name="app")
134-
def fx_app(plugin: OracleDatabasePlugin) -> Generator[Litestar,None, None]:
134+
def fx_app(plugin: OracleDatabasePlugin) -> Generator[Litestar, None, None]:
135135
"""App fixture.
136136
137137
Returns:

0 commit comments

Comments
 (0)