From 082e30822f0762b4121bbe58bab327d9b2cff7d0 Mon Sep 17 00:00:00 2001 From: Benjamin Rosemann Date: Thu, 19 Nov 2020 11:24:38 +0100 Subject: [PATCH] Fix method return type --- qurator/dinglehopper/edit_distance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qurator/dinglehopper/edit_distance.py b/qurator/dinglehopper/edit_distance.py index 5b7f624..986397f 100644 --- a/qurator/dinglehopper/edit_distance.py +++ b/qurator/dinglehopper/edit_distance.py @@ -123,7 +123,9 @@ def transform_lists(l1: List, l2: List) -> Tuple[str, str]: return s1, s2 -def transform_unicode(s1: str, s2: str) -> Union[Tuple[str, str], Tuple[List[str]]]: +def transform_unicode( + s1: str, s2: str +) -> Union[Tuple[str, str], Tuple[List[str], List[str]]]: """Transform two text sequences to unicode representation. Normalize to unicode and decides whether we have wide chars