File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2929 nvcomp = None
3030
3131
32- def parse_zstd_level (data : JSON ) -> int :
32+ def _parse_zstd_level (data : JSON ) -> int :
3333 if isinstance (data , int ):
3434 if data >= 23 :
3535 raise ValueError (f"Value must be less than or equal to 22. Got { data } instead." )
3636 return data
3737 raise TypeError (f"Got value with type { type (data )} , but expected an int." )
3838
3939
40- def parse_checksum (data : JSON ) -> bool :
40+ def _parse_checksum (data : JSON ) -> bool :
4141 if isinstance (data , bool ):
4242 return data
4343 raise TypeError (f"Expected bool. Got { type (data )} ." )
@@ -53,8 +53,8 @@ class NvcompZstdCodec(BytesBytesCodec):
5353 def __init__ (self , * , level : int = 0 , checksum : bool = False ) -> None :
5454 # TODO: Set CUDA device appropriately here and also set CUDA stream
5555
56- level_parsed = parse_zstd_level (level )
57- checksum_parsed = parse_checksum (checksum )
56+ level_parsed = _parse_zstd_level (level )
57+ checksum_parsed = _parse_checksum (checksum )
5858
5959 object .__setattr__ (self , "level" , level_parsed )
6060 object .__setattr__ (self , "checksum" , checksum_parsed )
You can’t perform that action at this time.
0 commit comments