From 7c26a6586522d930b563ded510d3f99f92a4192c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 17 Aug 2019 23:48:05 +0200 Subject: [PATCH] minor: make noqa comment more specific --- src/_pytest/compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/compat.py b/src/_pytest/compat.py index 2d11231a4..790442b0c 100644 --- a/src/_pytest/compat.py +++ b/src/_pytest/compat.py @@ -27,9 +27,9 @@ MODULE_NOT_FOUND_ERROR = ( if sys.version_info >= (3, 8): - from importlib import metadata as importlib_metadata # noqa + from importlib import metadata as importlib_metadata # noqa: F401 else: - import importlib_metadata # noqa + import importlib_metadata # noqa: F401 def _format_args(func):