Skip to content

Commit 12e47e9

Browse files
authored
[Typing] Enhance the WriteExcelBuffer protocol to be compatible with io.BinaryIO (#58422)
TYP: Enhance the WriteExcelBuffer protocol to be compatible with io.BinaryIO
1 parent a0977f5 commit 12e47e9

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)