don't check the type since older python doesn't have re.Pattern

This commit is contained in:
Jakob Ketterl 2021-01-25 19:36:55 +01:00
parent b2e8fc5ad5
commit f81cf3570a

View File

@ -80,7 +80,7 @@ class NumberValidator(OrValidator):
class RegexValidator(StringValidator): class RegexValidator(StringValidator):
def __init__(self, regex: re.Pattern): def __init__(self, regex):
self.regex = regex self.regex = regex
super().__init__() super().__init__()