Commit f2c6de4
TYP: enhance
* TYP: enhance `ExcelWriter` with generic type support and overloads
* Update pandas-stubs/io/excel/_base.pyi
Co-authored-by: Yi-Fan Wang <[email protected]>
* fix(types): narrow ExcelWriter path union to FilePath | BinaryIO
Co-authored-by: Yi-Fan Wang <[email protected]>
* fix(types): remove default value from ExcelWriter engine literal
Co-authored-by: Yi-Fan Wang <[email protected]>
* fix(types): remove default value from ExcelWriter engine literal
Co-authored-by: Yi-Fan Wang <[email protected]>
* fix(types): remove default value from ExcelWriter engine literal
Co-authored-by: Yi-Fan Wang <[email protected]>
* fix(types): update ExcelWriter path type to use BinaryIO instead of WriteExcelBuffer
* fix(types): refactor ExcelWriter constructor to use __new__ and improve parameter defaults
---------
Co-authored-by: Yi-Fan Wang <[email protected]>ExcelWriter with generic type support and overloads (#1561)1 parent b4c3b56 commit f2c6de4
File tree
3 files changed
+88
-19
lines changed- pandas-stubs/io
- excel
- formats
- tests
3 files changed
+88
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| |||
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
35 | | - | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| |||
209 | 217 | | |
210 | 218 | | |
211 | 219 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
224 | 273 | | |
225 | 274 | | |
226 | 275 | | |
227 | 276 | | |
228 | 277 | | |
229 | 278 | | |
230 | 279 | | |
231 | | - | |
| 280 | + | |
232 | 281 | | |
233 | 282 | | |
234 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
106 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
107 | 113 | | |
108 | 114 | | |
109 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
1188 | 1193 | | |
1189 | 1194 | | |
1190 | 1195 | | |
1191 | | - | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
1192 | 1200 | | |
1193 | 1201 | | |
1194 | 1202 | | |
| |||
1197 | 1205 | | |
1198 | 1206 | | |
1199 | 1207 | | |
1200 | | - | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
1201 | 1212 | | |
1202 | 1213 | | |
1203 | 1214 | | |
| |||
1206 | 1217 | | |
1207 | 1218 | | |
1208 | 1219 | | |
1209 | | - | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
1210 | 1224 | | |
1211 | 1225 | | |
1212 | 1226 | | |
| |||
0 commit comments