From d42d3aa4242d3daeb7d823cb32866321db8d3a0b Mon Sep 17 00:00:00 2001 From: Yaswanth Kumar <155723049+VYaswanthKumar@users.noreply.github.com> Date: Mon, 13 Oct 2025 22:10:46 +0530 Subject: [PATCH] Minor cleanup: removed mypy inline type comment in _xlsxwriter.py constructor (#62675) (cherry picked from commit 48e78aa3a48d18839f810c3f19be614ec90912e6) --- 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 e7a9789ccd0f3..6eacac8c064fb 100644 --- a/pandas/io/excel/_xlsxwriter.py +++ b/pandas/io/excel/_xlsxwriter.py @@ -213,7 +213,7 @@ def __init__( ) 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