From 0460524e44896b9e5c746a21e1f06efe9b5ed475 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 4 Mar 2021 05:35:44 -0500 Subject: [PATCH] stacklevel of 2 is the right place --- importlib_metadata/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importlib_metadata/__init__.py b/importlib_metadata/__init__.py index 8ab38328..b02dc159 100644 --- a/importlib_metadata/__init__.py +++ b/importlib_metadata/__init__.py @@ -224,7 +224,7 @@ class Deprecated: warnings.warn, "SelectableGroups dict interface is deprecated. Use select.", DeprecationWarning, - stacklevel=3, + stacklevel=2, ) def __getitem__(self, name):