Skip to content

Commit

Permalink
Merge pull request mouredev#4196 from KevinED11/patch-1
Browse files Browse the repository at this point in the history
reto mouredev#29 - python
  • Loading branch information
kontroldev authored Jul 19, 2023
2 parents 1bef052 + 74fabd1 commit c5c754a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from functools import lru_cache

from typing import Optional

class InvalidLengthError(Exception):
def __init__(self, message: str) -> None:
super().__init__(message)


@lru_cache()
def difference_between_strings(first_text: str, second_text: str) -> list[str]:
def difference_between_strings(first_text: str, second_text: str) -> list[Optional[str]]:
if len(first_text) != len(second_text):
raise InvalidLengthError("The length of the texts must be equal")

Expand Down

0 comments on commit c5c754a

Please sign in to comment.