Make mypy happy
This commit is contained in:
parent
0b6c1993d2
commit
fabc94c062
2 changed files with 3 additions and 1 deletions
2
mypy.ini
Normal file
2
mypy.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[mypy]
|
||||||
|
check_untyped_defs = True
|
|
@ -29,7 +29,7 @@ def levenshtein_distance(s1, s2):
|
||||||
if len(s1) > len(s2):
|
if len(s1) > len(s2):
|
||||||
s1, s2 = s2, s1
|
s1, s2 = s2, s1
|
||||||
|
|
||||||
distances = range(len(s1) + 1)
|
distances: list[int] = list(range(len(s1) + 1))
|
||||||
for i2, c2 in enumerate(s2):
|
for i2, c2 in enumerate(s2):
|
||||||
distances_ = [i2 + 1]
|
distances_ = [i2 + 1]
|
||||||
for i1, c1 in enumerate(s1):
|
for i1, c1 in enumerate(s1):
|
||||||
|
|
Loading…
Reference in a new issue