diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-12-10 14:46:27 +0000 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-12-13 16:49:40 +0000 |
commit | 37215edd817a4f4267302ef57df0f1ebb3dbf330 (patch) | |
tree | ee32c34d2b604e6ff6ae2da570953e909cc8e72c | |
parent | During AS catch-up, send empty OTK counts and fallback keys for now (diff) | |
download | synapse-37215edd817a4f4267302ef57df0f1ebb3dbf330.tar.xz |
Fix up type after rebase onto anoa's branch
-rw-r--r-- | synapse/appservice/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py index d62871bb07..2ec1b8f48a 100644 --- a/synapse/appservice/api.py +++ b/synapse/appservice/api.py @@ -13,7 +13,7 @@ # limitations under the License. import logging import urllib -from typing import TYPE_CHECKING, Dict, List, Optional, Tuple +from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Union from prometheus_client import Counter @@ -239,7 +239,7 @@ class ApplicationServiceApi(SimpleHttpClient): uri = service.url + ("/transactions/%s" % urllib.parse.quote(str(txn_id))) # Never send ephemeral events to appservices that do not support it - body: Dict[str, List[JsonDict]] = {"events": serialized_events} + body: Dict[str, Union[JsonDict, List[JsonDict]]] = {"events": serialized_events} if service.supports_ephemeral: body.update( { |