Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Fix type annotation causing import time error in the Complement forking launcher. #14084

Merged
merged 3 commits into from
Nov 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/14084.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix type annotation causing import time error in the Complement forking launcher.
4 changes: 2 additions & 2 deletions synapse/app/complement_fork_starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@
import signal
import sys
from types import FrameType
from typing import Any, Callable, List, Optional
from typing import Any, Callable, Dict, List, Optional

from twisted.internet.main import installReactor

# a list of the original signal handlers, before we installed our custom ones.
# We restore these in our child processes.
_original_signal_handlers: dict[int, Any] = {}
_original_signal_handlers: Dict[int, Any] = {}


class ProxiedReactor:
Expand Down