mirror of
https://github.com/element-hq/synapse
synced 2024-10-05 23:32:40 +00:00
Annotate advanced function
This commit is contained in:
parent
e67cd89e7b
commit
9a35283393
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue