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