From 29b3c35a4df6c1ff4407e7c52d5da7e6eb0f5e55 Mon Sep 17 00:00:00 2001 From: sgauth01 Date: Fri, 16 Jan 2026 16:40:22 -0800 Subject: [PATCH] added errors raised in documentation --- src/wordguess/result_to_pattern.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 --------