From a256c7a2a5cefe9d0fe52b8364f0ae830a76c4fd Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 5 Jan 2024 13:10:19 +0000 Subject: [PATCH 1/2] Fix linting Introduced in #16762 --- synapse/handlers/room.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 41b00a5cf7b..b49b917b6ef 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -26,7 +26,17 @@ import string from collections import OrderedDict from http import HTTPStatus -from typing import TYPE_CHECKING, Any, Awaitable, Callable, Dict, List, Optional, Tuple +from typing import ( + TYPE_CHECKING, + Any, + Awaitable, + Callable, + Dict, + List, + Optional, + Tuple, + cast, +) import attr from typing_extensions import TypedDict From 7a124370429cc13bbb76d6c57898c089e28ce533 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 5 Jan 2024 13:11:44 +0000 Subject: [PATCH 2/2] Newsfile --- changelog.d/16780.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/16780.misc diff --git a/changelog.d/16780.misc b/changelog.d/16780.misc new file mode 100644 index 00000000000..c49dc2085e0 --- /dev/null +++ b/changelog.d/16780.misc @@ -0,0 +1 @@ +Simplify event internal metadata class.