Skip to content

Commit

Permalink
raises' patter is a optional matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kalfa committed Sep 26, 2024
1 parent 5bc54f9 commit 7dc8a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hamcrest/core/core/raises.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def describe_match(self, item, match_description: Description) -> None:


def raises(
exception: Type[Exception], pattern: Optional[str] = None, matching: Optional[str] = None
exception: Type[Exception], pattern: Optional[str] = None, matching: Optional[Matcher] = None
) -> Matcher[Callable[..., Any]]:
"""Matches if the called function raised the expected exception.
Expand Down

0 comments on commit 7dc8a7d

Please sign in to comment.