Skip to content

Commit 3c37ef7

Browse files
committed
return type for valid regex
1 parent 17d1dae commit 3c37ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contract-tests/tests/test/amazon/base/contract_test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def _assert_metric_attributes(
239239
):
240240
self.fail("Tests must implement this function")
241241

242-
def _is_valid_regex(self, pattern: str):
242+
def _is_valid_regex(self, pattern: str) -> bool:
243243
try:
244244
re.compile(pattern)
245245
return True

0 commit comments

Comments
 (0)