Skip to content

Commit cb4cf6d

Browse files
authored
mypy: fix ParamSpec usage (#1155) (#1157)
1 parent 9d1efce commit cb4cf6d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/neo4j/_async/work/session.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,11 @@ async def _run_transaction(
543543
transaction_function: t.Callable[
544544
te.Concatenate[AsyncManagedTransaction, _P], t.Awaitable[_R]
545545
],
546-
args: _P.args,
547-
kwargs: _P.kwargs,
546+
# *args: _P.args, **kwargs: _P.kwargs
547+
# gives more type safety, but is less performant and makes for harder
548+
# to read call sites
549+
args: t.Any,
550+
kwargs: t.Any,
548551
) -> _R:
549552
self._check_state()
550553
if not callable(transaction_function):

src/neo4j/_sync/work/session.py

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)