From 2122254370a350d9fef6277152763ad178b043ed Mon Sep 17 00:00:00 2001 From: Yaswanth Kumar <155723049+VYaswanthKumar@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:54:16 +0530 Subject: [PATCH] Update _xlsxwriter.py --- pandas/io/excel/_xlsxwriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/excel/_xlsxwriter.py b/pandas/io/excel/_xlsxwriter.py index 5874f720e3bd0..4a7b8eee2bfce 100644 --- a/pandas/io/excel/_xlsxwriter.py +++ b/pandas/io/excel/_xlsxwriter.py @@ -213,7 +213,7 @@ def __init__( # pyright: ignore[reportInconsistentConstructor] ) try: - self._book = Workbook(self._handles.handle, **engine_kwargs) # type: ignore[arg-type] + self._book = Workbook(self._handles.handle, **engine_kwargs) except TypeError: self._handles.handle.close() raise