summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-05-27 11:17:33 +0100
committerGitHub <noreply@github.com>2022-05-27 11:17:33 +0100
commit3503f42741d438b67490bc774ee2c3a856f6bc81 (patch)
tree2b39ed642df3ac4ae149bdde6c13d00edc5683ff /synapse/config
parentFix room deletion (#12889) (diff)
downloadsynapse-3503f42741d438b67490bc774ee2c3a856f6bc81.tar.xz
Easy type hints in synapse.logging.opentracing (#12894)
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/tracer.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/config/tracer.py b/synapse/config/tracer.py
index 3472a9a01b..ae68a3dd1a 100644
--- a/synapse/config/tracer.py
+++ b/synapse/config/tracer.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from typing import Any, Set
+from typing import Any, List, Set
 
 from synapse.types import JsonDict
 from synapse.util.check_dependencies import DependencyException, check_requirements
@@ -49,7 +49,9 @@ class TracerConfig(Config):
 
         # The tracer is enabled so sanitize the config
 
-        self.opentracer_whitelist = opentracing_config.get("homeserver_whitelist", [])
+        self.opentracer_whitelist: List[str] = opentracing_config.get(
+            "homeserver_whitelist", []
+        )
         if not isinstance(self.opentracer_whitelist, list):
             raise ConfigError("Tracer homeserver_whitelist config is malformed")