Add type hints for "strings" folder (#2882)

* Add type hints for strings/ folder

* Rerun other checks

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Dmytro Litvinov
2020-10-06 11:31:15 +03:00
committed by GitHub
parent f36a2f621e
commit 000cedc07f
7 changed files with 23 additions and 16 deletions

View File

@ -13,7 +13,7 @@ python levenshtein-distance.py
"""
def levenshtein_distance(first_word, second_word):
def levenshtein_distance(first_word: str, second_word: str) -> int:
"""Implementation of the levenshtein distance in Python.
:param first_word: the first word to measure the difference.
:param second_word: the second word to measure the difference.