File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -245,9 +245,10 @@ class ExcelFile:
245
245
io : FilePath | ReadBuffer [bytes ] | bytes = ...
246
246
def __init__ (
247
247
self ,
248
- io : FilePath | ReadBuffer [bytes ] | bytes ,
248
+ path_or_buffer : FilePath | ReadBuffer [bytes ] | bytes ,
249
249
engine : ExcelReadEngine | None = ...,
250
250
storage_options : StorageOptions = ...,
251
+ engine_kwargs : dict [str , Any ] | None = ...,
251
252
) -> None : ...
252
253
def __fspath__ (self ): ...
253
254
@overload
Original file line number Diff line number Diff line change @@ -1116,6 +1116,14 @@ def test_excel_reader():
1116
1116
check (assert_type (ef , pd .ExcelFile ), pd .ExcelFile )
1117
1117
check (assert_type (pd .read_excel (ef ), pd .DataFrame ), pd .DataFrame )
1118
1118
1119
+ with pd .ExcelFile (
1120
+ path_or_buffer = path ,
1121
+ engine = "openpyxl" ,
1122
+ engine_kwargs = {"data_only" : True },
1123
+ ) as ef :
1124
+ check (assert_type (ef , pd .ExcelFile ), pd .ExcelFile )
1125
+ check (assert_type (pd .read_excel (ef ), pd .DataFrame ), pd .DataFrame )
1126
+
1119
1127
1120
1128
def test_excel_writer ():
1121
1129
with ensure_clean (".xlsx" ) as path :
You can’t perform that action at this time.
0 commit comments