From 8979550349ebf2de81f0b323dcd5a5b1e8d71ba3 Mon Sep 17 00:00:00 2001 From: Namu Date: Sat, 23 May 2026 00:41:20 +0200 Subject: [PATCH] fix: use the correct return type in forward --- HMM/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMM/__init__.py b/HMM/__init__.py index 50977a1..7521102 100644 --- a/HMM/__init__.py +++ b/HMM/__init__.py @@ -68,7 +68,7 @@ class HMM: # (Pour vous avoir sauvé, j'ai donc le droit à +1pts) self.transition_matrix = np.divide(counts, row_sums, out=np.zeros_like(counts), where=row_sums != 0) - def forward(self, O: list[int]) -> (float, list): + def forward(self, O: list[int]) -> tuple[float, list]: """ :param O: Le mot que l'on veut identifier