Преглед изворни кода

Fix mypy error with opentracing.tags. (#11622)

Patrick Cloke пре 2 година
родитељ
комит
66d7aa783a
2 измењених фајлова са 2 додато и 0 уклоњено
  1. 1 0
      changelog.d/11622.misc
  2. 1 0
      synapse/logging/opentracing.py

+ 1 - 0
changelog.d/11622.misc

@@ -0,0 +1 @@
+Add opentracing type stubs and fix associated mypy errors.

+ 1 - 0
synapse/logging/opentracing.py

@@ -220,6 +220,7 @@ class _DummyTagNames:
 
 try:
     import opentracing
+    import opentracing.tags
 
     tags = opentracing.tags
 except ImportError: