Skip to content

Commit 6d463a5

Browse files
pcorpetpmhatre1
authored andcommitted
[Typing] Enhance the WriteExcelBuffer protocol to be compatible with io.BinaryIO (pandas-dev#58422)
TYP: Enhance the WriteExcelBuffer protocol to be compatible with io.BinaryIO
1 parent 8a1190b commit 6d463a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def readline(self) -> bytes: ...
314314

315315

316316
class WriteExcelBuffer(WriteBuffer[bytes], Protocol):
317-
def truncate(self, size: int | None = ...) -> int: ...
317+
def truncate(self, size: int | None = ..., /) -> int: ...
318318

319319

320320
class ReadCsvBuffer(ReadBuffer[AnyStr_co], Protocol):

0 commit comments

Comments
 (0)