diff --git a/synapse/events/utils.py b/synapse/events/utils.py index e1ff851fe19d..43c3241fb0d1 100644 --- a/synapse/events/utils.py +++ b/synapse/events/utils.py @@ -39,7 +39,6 @@ if TYPE_CHECKING: from synapse.handlers.relations import BundledAggregations - from synapse.server import HomeServer # Split strings on "." but not "\." This uses a negative lookbehind assertion for '\' diff --git a/synapse/storage/databases/main/relations.py b/synapse/storage/databases/main/relations.py index 8789bb095387..1e08be111cc3 100644 --- a/synapse/storage/databases/main/relations.py +++ b/synapse/storage/databases/main/relations.py @@ -13,18 +13,7 @@ # limitations under the License. import logging -from typing import ( - TYPE_CHECKING, - Collection, - Dict, - Iterable, - List, - Optional, - Set, - Tuple, - Union, - cast, -) +from typing import Collection, Dict, Iterable, List, Optional, Set, Tuple, Union, cast from synapse.api.constants import RelationTypes from synapse.events import EventBase