From b35745d09b33aed20670ecb96726f89206487a24 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Fleuret?= Date: Sun, 18 Feb 2024 23:10:47 +0100 Subject: [PATCH] Update. --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 181ac44..78910a0 100755 --- a/tasks.py +++ b/tasks.py @@ -132,7 +132,7 @@ class TaskFromFile(Task): sequence = f.readline().strip() pred_mask = f.readline().strip() assert len(sequence) == len(pred_mask) - assert set(pred_mask) == {"0", "1", "2"}, f"{set(pred_mask)}" + assert set(pred_mask).issubset({"0", "1", "2"}), f"{set(pred_mask)}" pairs.append((sequence, pred_mask)) symbols = ["#"] + list(set("".join([x[0] for x in pairs])) - set(["#"])) -- 2.39.5