diff --git a/dyn_huffman.py b/dyn_huffman.py index 4ff9dc712bb73e57aaa4b8f1f930dcdc26014cbc..463ce36deb39b87691c8b94cb0ba40c345157b4d 100644 --- a/dyn_huffman.py +++ b/dyn_huffman.py @@ -151,7 +151,7 @@ def encode(input: str) -> str: return ' '.join(encoded)[1:] -def decode(encoded: str) -> (str, str): +def decode(encoded: str) -> tuple[str, str]: bits = encoded.replace(' ', '') tree = Node() result = ''