diff --git a/src/wordguess/result_to_pattern.py b/src/wordguess/result_to_pattern.py index 6ec31d1..5b24cea 100644 --- a/src/wordguess/result_to_pattern.py +++ b/src/wordguess/result_to_pattern.py @@ -17,6 +17,13 @@ def result_to_pattern(result: str) -> str: Returns ------- str: The corresponding human-readable string pattern composed of UTF-8 colored symbols. + + Raises + ------ + TypeError + If result is not of type str. + ValueError + If result contains characters other than '0', '1' and '2'. See Also --------