Skip to content

Commit 0e0eda4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 68c31b1 commit 0e0eda4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/psqlpy/_internal/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class QueryResult:
2222
@typing.overload
2323
def result(
2424
self: Self,
25-
as_tuple: typing.Literal[None] = None,
25+
as_tuple: None = None,
2626
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
2727
) -> list[dict[str, Any]]: ...
2828
@typing.overload
@@ -112,7 +112,7 @@ class SingleQueryResult:
112112
@typing.overload
113113
def result(
114114
self: Self,
115-
as_tuple: typing.Literal[None] = None,
115+
as_tuple: None = None,
116116
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
117117
) -> dict[str, Any]: ...
118118
@typing.overload

python/tests/test_kwargs_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ async def test_failed_no_parameter(
7777
async with psql_pool.acquire() as conn:
7878
with pytest.raises(expected_exception=PyToRustValueMappingError):
7979
await conn.execute(
80-
querystring=(f"SELECT * FROM {table_name} " "WHERE name = $(name)p"), # noqa: ISC001
80+
querystring=(f"SELECT * FROM {table_name} WHERE name = $(name)p"), # noqa: ISC001
8181
parameters={"mistake": "wow"},
8282
)

0 commit comments

Comments
 (0)