From 1572f0e2f3a8f3d02f7e4d505698bf4ffe40b57d Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 21 Dec 2021 08:11:53 -0500 Subject: [PATCH 1/2] Import opentracing.tags. --- synapse/logging/opentracing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py index 63642906151e..622445e9f477 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: From 438152f35ee8c3a858698793aa12c1d00fb5b749 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 21 Dec 2021 08:14:59 -0500 Subject: [PATCH 2/2] Newsfragment --- changelog.d/11622.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/11622.misc diff --git a/changelog.d/11622.misc b/changelog.d/11622.misc new file mode 100644 index 000000000000..def24afb8d23 --- /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