The signature of pandas.ExcelFile(...)
in stubs is not consistent with the run-time signature.
#1116
Labels
IO Excel
read_excel, to_excel
Describe the bug
In the stubs, the signature of
pandas.io.excel.ExcelFile(...)
inpandas==2.2.3
supposes to beHowever, the actual implementation in stubs is
pandas-stubs/pandas-stubs/io/excel/_base.pyi
Lines 246 to 251 in 4976e11
where
path_or_buffer
, notio
.engine_kwargs
is missing.the keywordSorry, I found thatstorage_options
should allow aNone
value.None
case has been included here.To Reproduce
The following codes will work in run time, but show typing issues by
Pylance
:Pyright (with stubs) reports:
Please complete the following information:
python:3.10-slim
pandas-stubs
: v2.2.3.241126The text was updated successfully, but these errors were encountered: