From dfa297bac6a545231ef95b1b46befada87497464 Mon Sep 17 00:00:00 2001 From: Pablo Aguilar Date: Tue, 16 Aug 2022 00:21:20 -0300 Subject: [PATCH] Fixes Pattern Matching example from `Result` docs --- tests/test_examples/test_result/test_result_pattern_matching.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_examples/test_result/test_result_pattern_matching.py b/tests/test_examples/test_result/test_result_pattern_matching.py index 165b9795e..1b0275a6f 100644 --- a/tests/test_examples/test_result/test_result_pattern_matching.py +++ b/tests/test_examples/test_result/test_result_pattern_matching.py @@ -16,7 +16,7 @@ def div(first_number: int, second_number: int) -> int: print('Result is "{0}"'.format(value)) # Matches if the result stored inside `Failure` is `ZeroDivisionError` - case Failure(ZeroDivisionError): + case Failure(ZeroDivisionError()): print('"ZeroDivisionError" was raised') # Matches any `Failure` instance