From 029d0d4785b88135e81258d875c85898bcc4b725 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Thu, 19 Dec 2024 11:11:49 +0800 Subject: [PATCH] Add missing cast --- huffman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/huffman.py b/huffman.py index 8166a01..a310f43 100755 --- a/huffman.py +++ b/huffman.py @@ -256,7 +256,7 @@ def decompress(self, data: bytes) -> bytes: # no more bits, decoding error if bitcount == 0: print("no more bits") - return dst + return bytes(dst) if node == eof: break dst.append(node.symbol)