From 66d7aa783a8ad1b3eb6d17ba086e2dda8a912ab6 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 23 Dec 2021 06:47:24 -0500 Subject: [PATCH] Fix mypy error with opentracing.tags. (#11622) --- changelog.d/11622.misc | 1 + synapse/logging/opentracing.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/11622.misc diff --git a/changelog.d/11622.misc b/changelog.d/11622.misc new file mode 100644 index 000000000..def24afb8 --- /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 636429061..622445e9f 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: