From 12e47e96a81d65d3a781363b49d05787a5572d58 Mon Sep 17 00:00:00 2001 From: Pascal Corpet Date: Thu, 25 Apr 2024 19:51:33 +0200 Subject: [PATCH] [Typing] Enhance the WriteExcelBuffer protocol to be compatible with io.BinaryIO (#58422) TYP: Enhance the WriteExcelBuffer protocol to be compatible with io.BinaryIO --- pandas/_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/_typing.py b/pandas/_typing.py index 172b30c59fc13..ef68018f2721a 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -314,7 +314,7 @@ def readline(self) -> bytes: ... class WriteExcelBuffer(WriteBuffer[bytes], Protocol): - def truncate(self, size: int | None = ...) -> int: ... + def truncate(self, size: int | None = ..., /) -> int: ... class ReadCsvBuffer(ReadBuffer[AnyStr_co], Protocol):