summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-12-23 06:47:24 -0500
committerGitHub <noreply@github.com>2021-12-23 11:47:24 +0000
commit66d7aa783a8ad1b3eb6d17ba086e2dda8a912ab6 (patch)
tree061614a9b8bd9e3a06ae3841503c4994326e42a1
parentAdd details for how to set up TURN behind NAT (#11553) (diff)
downloadsynapse-66d7aa783a8ad1b3eb6d17ba086e2dda8a912ab6.tar.xz
Fix mypy error with opentracing.tags. (#11622)
-rw-r--r--changelog.d/11622.misc1
-rw-r--r--synapse/logging/opentracing.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/11622.misc b/changelog.d/11622.misc
new file mode 100644
index 0000000000..def24afb8d
--- /dev/null
+++ b/changelog.d/11622.misc
@@ -0,0 +1 @@
+Add opentracing type stubs and fix associated mypy errors.
\ No newline at end of file
diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py
index 6364290615..622445e9f4 100644
--- a/synapse/logging/opentracing.py
+++ b/synapse/logging/opentracing.py
@@ -220,6 +220,7 @@ class _DummyTagNames:
 
 try:
     import opentracing
+    import opentracing.tags
 
     tags = opentracing.tags
 except ImportError: