mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
[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:
@ -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:
|
||||
|
Reference in New Issue
Block a user