From ac524b62cb8c7858db7b0060c35051b1ed1d6ddc Mon Sep 17 00:00:00 2001 From: "iliya.saroukha" <iliya.saroukhanian@etu.hesge.ch> Date: Fri, 18 Apr 2025 21:17:39 +0200 Subject: [PATCH] fix: typing --- dyn_huffman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyn_huffman.py b/dyn_huffman.py index 4ff9dc7..463ce36 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 = '' -- GitLab