Skip to content

Commit 14f342c

Browse files
committed
fix: type error when exportng file as bytes
1 parent 0fadaa9 commit 14f342c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/excel/_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import io
34
from collections.abc import (
45
Callable,
56
Hashable,
@@ -1238,7 +1239,7 @@ def _save(self) -> None:
12381239

12391240
def __init__(
12401241
self,
1241-
path: FilePath | WriteExcelBuffer | ExcelWriter,
1242+
path: FilePath | WriteExcelBuffer | ExcelWriter | io[bytes],
12421243
engine: str | None = None,
12431244
date_format: str | None = None,
12441245
datetime_format: str | None = None,

0 commit comments

Comments
 (0)