@@ -274,9 +274,12 @@ async def run(
274274        For more usage details, see :meth:`.AsyncTransaction.run`. 
275275
276276        :param query: cypher query 
277+         :type query: typing.LiteralString | Query 
277278        :param parameters: dictionary of parameters 
279+         :type parameters: typing.Dict[str, typing.Any] | None 
278280        :param kwargs: additional keyword parameters. 
279281            These take precedence over parameters passed as ``parameters``. 
282+         :type kwargs: typing.Any 
280283
281284        :returns: a new :class:`neo4j.AsyncResult` object 
282285
@@ -608,10 +611,15 @@ async def get_two_tx(tx):
608611            argument and does work with the transaction. 
609612            ``transaction_function(tx, *args, **kwargs)`` where ``tx`` is a 
610613            :class:`.AsyncManagedTransaction`. 
614+         :type transaction_function: 
615+             typing.Callable[[AsyncManagedTransaction, P], typing.Awaitable[R]] 
611616        :param args: additional arguments for the `transaction_function` 
617+         :type args: P 
612618        :param kwargs: key word arguments for the `transaction_function` 
619+         :type kwargs: P 
613620
614621        :returns: whatever the given `transaction_function` returns 
622+         :rtype: R 
615623
616624        :raises SessionError: if the session has been closed. 
617625
@@ -640,10 +648,15 @@ async def read_transaction(
640648            argument and does work with the transaction. 
641649            ``transaction_function(tx, *args, **kwargs)`` where ``tx`` is a 
642650            :class:`.AsyncManagedTransaction`. 
651+         :type transaction_function: 
652+             typing.Callable[[AsyncManagedTransaction, P], typing.Awaitable[R]] 
643653        :param args: additional arguments for the `transaction_function` 
654+         :type args: P 
644655        :param kwargs: key word arguments for the `transaction_function` 
656+         :type kwargs: P 
645657
646658        :returns: a result as returned by the given unit of work 
659+         :rtype: R 
647660
648661        :raises SessionError: if the session has been closed. 
649662
@@ -690,10 +703,15 @@ async def create_node_tx(tx, name):
690703            argument and does work with the transaction. 
691704            ``transaction_function(tx, *args, **kwargs)`` where ``tx`` is a 
692705            :class:`.AsyncManagedTransaction`. 
706+         :type transaction_function: 
707+             typing.Callable[[AsyncManagedTransaction, P], typing.Awaitable[R]] 
693708        :param args: additional arguments for the `transaction_function` 
709+         :type args: P 
694710        :param kwargs: key word arguments for the `transaction_function` 
711+         :type kwargs: P 
695712
696713        :returns: a result as returned by the given unit of work 
714+         :rtype: R 
697715
698716        :raises SessionError: if the session has been closed. 
699717
@@ -722,10 +740,15 @@ async def write_transaction(
722740            argument and does work with the transaction. 
723741            ``transaction_function(tx, *args, **kwargs)`` where ``tx`` is a 
724742            :class:`.AsyncManagedTransaction`. 
743+         :type transaction_function: 
744+             typing.Callable[[AsyncManagedTransaction, P], typing.Awaitable[R]] 
725745        :param args: additional arguments for the `transaction_function` 
746+         :type args: P 
726747        :param kwargs: key word arguments for the `transaction_function` 
748+         :type kwargs: P 
727749
728750        :returns: a result as returned by the given unit of work 
751+         :rtype: R 
729752
730753        :raises SessionError: if the session has been closed. 
731754
0 commit comments