From f439d366883bc0e8c316b2c66a4fa6ef85ba4ada Mon Sep 17 00:00:00 2001 From: Soumik Dutta Date: Mon, 3 Oct 2022 02:47:05 +0530 Subject: [PATCH] fix warning no-value-for-parameter in pandas/core the warnings raised by pylint while scanning tests are not yet resolved Signed-off-by: Soumik Dutta --- pandas/io/excel/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 10b8a5b202872..5e5318a746b94 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -1662,7 +1662,7 @@ def __init__( f"only the xls format is supported. Install openpyxl instead." ) elif ext and ext != "xls": - stacklevel = find_stack_level() + stacklevel = find_stack_level(inspect.currentframe()) warnings.warn( f"Your version of xlrd is {xlrd_version}. In xlrd >= 2.0, " f"only the xls format is supported. Install "