From 3419bc540730adb01782ce6bfdbda6fecd1248d6 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Sat, 21 Jun 2025 13:40:34 -0400 Subject: [PATCH] Update `_zstd` stubs for 3.14.0b3 (#14306) --- stdlib/@tests/stubtest_allowlists/py314.txt | 2 -- stdlib/_zstd.pyi | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) 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: ...