Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions stdlib/@tests/stubtest_allowlists/common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ sys.ps1 # Available in interactive mode
sys.ps2 # Available in interactive mode
sys.tracebacklimit # Must be set first

# This depends on how Python was built
zlib.ZLIBNG_VERSION


# ==========================================================
# Other allowlist entries that cannot or should not be fixed
Expand Down
6 changes: 3 additions & 3 deletions stdlib/zlib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Z_RLE: Final = 3
Z_SYNC_FLUSH: Final = 2
Z_TREES: Final = 6

if sys.version_info >= (3, 14) and sys.platform == "win32":
# Available when zlib was built with zlib-ng, usually only on Windows
ZLIBNG_VERSION: Final[str]
if sys.version_info >= (3, 14):
# Available when zlib was built with zlib-ng
ZLIBNG_VERSION: Final[str] # type: ignore[attr-defined]

class error(Exception): ...

Expand Down
Loading