Skip to content

Commit 67087b5

Browse files
style: add explicit stacklevel argument
1 parent e097f24 commit 67087b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rosys/helpers/deprecation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def wrapper(*args, **kwargs):
1313
warnings.warn(
1414
f"The '{param_name}' parameter is deprecated and will be removed in future versions.",
1515
DeprecationWarning,
16+
stacklevel=2,
1617
)
1718
return func(*args, **kwargs)
1819
return wrapper

0 commit comments

Comments
 (0)