Annotate advanced function

This commit is contained in:
David Robertson 2022-10-01 22:22:42 +01:00
parent e67cd89e7b
commit 9a35283393
No known key found for this signature in database
GPG key ID: 903ECE108A39DEDD

View file

@ -814,9 +814,9 @@ class DatabasePool:
desc: str,
db_autocommit: bool,
isolation_level: Optional[int],
func: Callable[..., R],
*args: Any,
**kwargs: Any,
func: Callable[Concatenate[LoggingTransaction, P], R],
*args: P.args,
**kwargs: P.kwargs,
) -> R:
"""Starts a transaction on the database and runs a given function