Add some defaults and __slots__ for 3.14 (#14622)

This commit is contained in:
Jelle Zijlstra
2025-08-22 09:51:00 -07:00
committed by GitHub
parent 94b1880444
commit b6e21d05ae
7 changed files with 26 additions and 4 deletions
+1
View File
@@ -35,6 +35,7 @@ zstd_version_info: Final[tuple[int, int, int]]
COMPRESSION_LEVEL_DEFAULT: Final = _zstd.ZSTD_CLEVEL_DEFAULT
class FrameInfo:
__slots__ = ("decompressed_size", "dictionary_id")
decompressed_size: int
dictionary_id: int
def __init__(self, decompressed_size: int, dictionary_id: int) -> None: ...