From 81b1c562884f6d126721a3afe3eccb7460f799a6 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 5 Jan 2024 13:29:00 +0000 Subject: [PATCH] Fix linting (#16780) Introduced in #16762 --- changelog.d/16780.misc | 1 + synapse/handlers/room.py | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 changelog.d/16780.misc diff --git a/changelog.d/16780.misc b/changelog.d/16780.misc new file mode 100644 index 0000000000..c49dc2085e --- /dev/null +++ b/changelog.d/16780.misc @@ -0,0 +1 @@ +Simplify event internal metadata class. diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 41b00a5cf7..b49b917b6e 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -26,7 +26,17 @@ import random 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