Skip to content

Commit

Permalink
[Typing] Enhance the WriteExcelBuffer protocol to be compatible with …
Browse files Browse the repository at this point in the history
…io.BinaryIO (#58422)

TYP: Enhance the WriteExcelBuffer protocol to be compatible with io.BinaryIO
  • Loading branch information
pcorpet authored Apr 25, 2024
1 parent a0977f5 commit 12e47e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 12e47e9

Please sign in to comment.