Skip to content

Commit c4ee84b

Browse files
committed
reto #16 - python
1 parent 890443c commit c4ee84b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Roadmap/16 - EXPRESIONES REGULARES/python/KevinED11.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SearchPattern(StrEnum):
1616

1717

1818
@lru_cache
19-
def generic_searcher(pattern: str, text: str) -> IntTuple:
19+
def generic_searcher(pattern: SearchPattern, text: str) -> IntTuple:
2020
return tuple(re.findall(pattern, text))
2121

2222

@@ -34,7 +34,7 @@ class ValidationPattern(StrEnum):
3434

3535

3636
@lru_cache
37-
def generic_validator(pattern: str, value: str) -> bool:
37+
def generic_validator(pattern: ValidationPattern, value: str) -> bool:
3838
return re.search(pattern, value) is not None
3939

4040

0 commit comments

Comments
 (0)