Skip to content

Commit 0460524

Browse files
committed
stacklevel of 2 is the right place
1 parent d940e63 commit 0460524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class Deprecated:
224224
warnings.warn,
225225
"SelectableGroups dict interface is deprecated. Use select.",
226226
DeprecationWarning,
227-
stacklevel=3,
227+
stacklevel=2,
228228
)
229229

230230
def __getitem__(self, name):

0 commit comments

Comments
 (0)