소스 검색

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: