add bz2.BZ2File.peek (#13144)

This commit is contained in:
Stephen Morton
2024-11-27 19:56:57 -08:00
committed by GitHub
parent b286a59514
commit 775f8671b3
2 changed files with 1 additions and 1 deletions

View File

@@ -68,7 +68,6 @@ xml.sax.expatreader
_thread.RLock
_threading_local._localimpl.localargs
_threading_local._localimpl.locallock
bz2.BZ2File.peek
codecs.StreamReader.charbuffertype
codecs.StreamReader.seek
codecs.StreamWriter.seek

View File

@@ -126,6 +126,7 @@ class BZ2File(BaseStream, IO[bytes]):
def readline(self, size: SupportsIndex = -1) -> bytes: ... # type: ignore[override]
def readinto(self, b: WriteableBuffer) -> int: ...
def readlines(self, size: SupportsIndex = -1) -> list[bytes]: ...
def peek(self, n: int = 0) -> bytes: ...
def seek(self, offset: int, whence: int = 0) -> int: ...
def write(self, data: ReadableBuffer) -> int: ...
def writelines(self, seq: Iterable[ReadableBuffer]) -> None: ...