From 825bc57727b47c3ce2172f82227c701138754131 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Mon, 28 Nov 2022 20:53:53 +0100 Subject: [PATCH] Fix mypy again --- opentelemetry-api/src/opentelemetry/context/__init__.py | 2 +- opentelemetry-api/src/opentelemetry/propagate/__init__.py | 2 +- opentelemetry-api/src/opentelemetry/util/_providers.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opentelemetry-api/src/opentelemetry/context/__init__.py b/opentelemetry-api/src/opentelemetry/context/__init__.py index 1f5f4c65d1c..34712141391 100644 --- a/opentelemetry-api/src/opentelemetry/context/__init__.py +++ b/opentelemetry-api/src/opentelemetry/context/__init__.py @@ -25,7 +25,7 @@ # pylint: disable=import-error from importlib_metadata import entry_points # type: ignore else: - from importlib.metadata import entry_points # type: ignore + from importlib.metadata import entry_points # pylint: disable=wrong-import-position from opentelemetry.context.context import Context, _RuntimeContext diff --git a/opentelemetry-api/src/opentelemetry/propagate/__init__.py b/opentelemetry-api/src/opentelemetry/propagate/__init__.py index 839245aeb2d..0aa16299102 100644 --- a/opentelemetry-api/src/opentelemetry/propagate/__init__.py +++ b/opentelemetry-api/src/opentelemetry/propagate/__init__.py @@ -82,7 +82,7 @@ def example_route(): # pylint: disable=import-error from importlib_metadata import entry_points # type: ignore else: - from importlib.metadata import entry_points # type: ignore + from importlib.metadata import entry_points logger = getLogger(__name__) diff --git a/opentelemetry-api/src/opentelemetry/util/_providers.py b/opentelemetry-api/src/opentelemetry/util/_providers.py index db2cd8fd448..a1c4e2837d8 100644 --- a/opentelemetry-api/src/opentelemetry/util/_providers.py +++ b/opentelemetry-api/src/opentelemetry/util/_providers.py @@ -22,7 +22,7 @@ # pylint: disable=import-error from importlib_metadata import entry_points # type: ignore else: - from importlib.metadata import entry_points # type: ignore + from importlib.metadata import entry_points if TYPE_CHECKING: from opentelemetry.metrics import MeterProvider