[mypy] Fix type annotations for strings (#4637)

* Fix mypy error for can_string_be_rearranged_as_pal

* Fix mypy error for levenshtein_distance.py

* Fix mypy error for word_patterns.py

* Fix mypy error for word_occurrence.py
This commit is contained in:
imp
2021-08-19 20:08:20 +08:00
committed by GitHub
parent 9cb5760e89
commit 20a4fdf384
4 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ if __name__ == "__main__":
with open("dictionary.txt") as in_file:
wordList = in_file.read().splitlines()
all_patterns = {}
all_patterns: dict = {}
for word in wordList:
pattern = get_word_pattern(word)
if pattern in all_patterns: