Fix stacklevel start
@@ -18,7 +18,7 @@ def deprecation_warning(msg, warning=FutureWarning):
param_dir = os.path.dirname(param.__file__)
frame = inspect.currentframe()
- stacklevel = 1
+ stacklevel = 0
while frame:
fname = inspect.getfile(frame)
if (fname.startswith(pkg_dir) or fname.startswith(param_dir)) and not fname.startswith(test_dir):
