From b1fd67bdf018c32739e1ec2e44ebdc3fa8ffd251 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Thu, 27 Aug 2020 08:53:23 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20wrong=20type=20signatures=20(even=20if=20?= =?UTF-8?q?str=20is=20Iterable[str]=E2=80=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- synapse/storage/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/storage/database.py b/synapse/storage/database.py index 181c3ec249..207fa9d7df 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py @@ -1070,7 +1070,7 @@ class DatabasePool(object): self, table: str, keyvalues: Dict[str, Any], - retcol: Iterable[str], + retcol: str, allow_none: bool = False, desc: str = "simple_select_one_onecol", ) -> Optional[Any]: @@ -1100,7 +1100,7 @@ class DatabasePool(object): txn: LoggingTransaction, table: str, keyvalues: Dict[str, Any], - retcol: Iterable[str], + retcol: str, allow_none: bool = False, ) -> Optional[Any]: ret = cls.simple_select_onecol_txn(