Unverified Commit d2fba6e5 authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros
Browse files

Flake8.

parent 521ce985
......@@ -270,7 +270,7 @@ class Trie(object):
def levenshtein(self: object, word: str, distance) -> str:
try:
return next(self.all_levenshtein(word, distance: int))
return next(self.all_levenshtein(word, distance))
except StopIteration:
return None
......
......@@ -7,7 +7,7 @@ def lev(a, b):
if a[-1] != b[-1]:
return min(
lev(a[:-1], b),
lev(a, b[:-1]),
lev(a, b[:-1]),
lev(a[:-1], b[:-1])) + 1
return lev(a[:-1], b[:-1])
......
......@@ -21,3 +21,8 @@ packages = find:
tests_require =
fake-open==0.0.1
pytest==4.0.1
[flake8]
per-file-ignores =
dict_trie/__init__.py: F401
dict_trie/dict_trie.py: E252
......@@ -2,7 +2,7 @@
from dict_trie import Trie
class TestTrie(object) -> None:
class TestTrie(object):
def setup(self: object) -> None:
self._trie = Trie(['abc', 'abd', 'abd', 'test', 'te'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment