summary refs log tree commit diff
path: root/synapse/storage/database.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-09-05 14:40:53 +0100
committerDavid Robertson <davidr@element.io>2023-09-05 14:40:53 +0100
commit0e8cbbdb8eb5140a8563f389b11444e150967589 (patch)
treea6fda197186c02bf0c852ea611287a5e3b3a0210 /synapse/storage/database.py
parentMerge remote-tracking branch 'origin/release-v1.91' into matrix-org-hotfixes (diff)
parentUpdate changelog (diff)
downloadsynapse-0e8cbbdb8eb5140a8563f389b11444e150967589.tar.xz
Merge remote-tracking branch 'origin/release-v1.92' into matrix-org-hotfixes
Diffstat (limited to 'synapse/storage/database.py')
-rw-r--r--synapse/storage/database.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/synapse/storage/database.py b/synapse/storage/database.py

index a1c8fb0f46..55ac313f33 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py
@@ -31,6 +31,7 @@ from typing import ( Iterator, List, Optional, + Sequence, Tuple, Type, TypeVar, @@ -358,7 +359,21 @@ class LoggingTransaction: return self.txn.rowcount @property - def description(self) -> Any: + def description( + self, + ) -> Optional[ + Sequence[ + Tuple[ + str, + Optional[Any], + Optional[int], + Optional[int], + Optional[int], + Optional[int], + Optional[int], + ] + ] + ]: return self.txn.description def execute_batch(self, sql: str, args: Iterable[Iterable[Any]]) -> None: