diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-08-12 14:20:35 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-08-12 14:20:35 +0200 |
commit | f96c3d0d025ad37836eb908d561b0c607a1f7b5e (patch) | |
tree | 20d03897e04d3cf773492791a2f8bd9b4009800c /fuzzycat/matching.py | |
parent | 22bf2f4db51937fff2d04e9f8f40d57ed19f48e3 (diff) | |
download | fuzzycat-f96c3d0d025ad37836eb908d561b0c607a1f7b5e.tar.gz fuzzycat-f96c3d0d025ad37836eb908d561b0c607a1f7b5e.zip |
adjust formatting
Diffstat (limited to 'fuzzycat/matching.py')
-rw-r--r-- | fuzzycat/matching.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py index 7fe2fd6..cbadbc2 100644 --- a/fuzzycat/matching.py +++ b/fuzzycat/matching.py @@ -140,7 +140,8 @@ def match_container_names(a: str, b: str) -> MatchStatus: return MatchStatus.WEAK # Address e.g. a char flip, but only, if we do not have diacritics. - if (not asa["is_short_string"] and not asa["is_single_token"] and not asa["has_diacritics"] and hamming_distance(a, b) < 2): + if (not asa["is_short_string"] and not asa["is_single_token"] and not asa["has_diacritics"] + and hamming_distance(a, b) < 2): return MatchStatus.STRONG return MatchStatus.AMBIGIOUS |