diff --git a/stdlib/@tests/stubtest_allowlists/py314.txt b/stdlib/@tests/stubtest_allowlists/py314.txt index be516362a..91d020416 100644 --- a/stdlib/@tests/stubtest_allowlists/py314.txt +++ b/stdlib/@tests/stubtest_allowlists/py314.txt @@ -2,9 +2,7 @@ # TODO: New errors in Python 3.14 that need to be fixed or moved below # ==================================================================== -_zstd.ZstdCompressor.set_pledged_input_size asyncio.tools -compression.zstd.ZstdCompressor.set_pledged_input_size concurrent.interpreters multiprocessing.managers.BaseListProxy.clear multiprocessing.managers.BaseListProxy.copy diff --git a/stdlib/_zstd.pyi b/stdlib/_zstd.pyi index 0648d8984..273023252 100644 --- a/stdlib/_zstd.pyi +++ b/stdlib/_zstd.pyi @@ -52,6 +52,7 @@ class ZstdCompressor: self, /, data: ReadableBuffer, mode: _ZstdCompressorContinue | _ZstdCompressorFlushBlock | _ZstdCompressorFlushFrame = 0 ) -> bytes: ... def flush(self, /, mode: _ZstdCompressorFlushBlock | _ZstdCompressorFlushFrame = 2) -> bytes: ... + def set_pledged_input_size(self, size: int | None, /) -> None: ... @property def last_mode(self) -> _ZstdCompressorContinue | _ZstdCompressorFlushBlock | _ZstdCompressorFlushFrame: ...