@@ -45,9 +45,9 @@ class ZstdCompressor:
4545 CONTINUE : Final = 0
4646 FLUSH_BLOCK : Final = 1
4747 FLUSH_FRAME : Final = 2
48- def __init__ (
48+ def __new__ (
4949 self , level : int | None = None , options : Mapping [int , int ] | None = None , zstd_dict : ZstdDict | None = None
50- ) -> None : ...
50+ ) -> Self : ...
5151 def compress (
5252 self , / , data : ReadableBuffer , mode : _ZstdCompressorContinue | _ZstdCompressorFlushBlock | _ZstdCompressorFlushFrame = 0
5353 ) -> bytes : ...
@@ -58,7 +58,7 @@ class ZstdCompressor:
5858
5959@final
6060class ZstdDecompressor :
61- def __init__ (self , zstd_dict : ZstdDict | None = None , options : Mapping [int , int ] | None = None ) -> None : ...
61+ def __new__ (self , zstd_dict : ZstdDict | None = None , options : Mapping [int , int ] | None = None ) -> Self : ...
6262 def decompress (self , / , data : ReadableBuffer , max_length : int = - 1 ) -> bytes : ...
6363 @property
6464 def eof (self ) -> bool : ...
@@ -69,7 +69,7 @@ class ZstdDecompressor:
6969
7070@final
7171class ZstdDict :
72- def __init__ (self , dict_content : bytes , / , * , is_raw : bool = False ) -> None : ...
72+ def __new__ (self , dict_content : bytes , / , * , is_raw : bool = False ) -> Self : ...
7373 def __len__ (self , / ) -> int : ...
7474 @property
7575 def as_digested_dict (self ) -> tuple [Self , int ]: ...
0 commit comments