--- a/quex/input/code/base.py 2020-08-17 11:27:16.948578316 +0200 +++ b/quex/input/code/base.py 2020-08-17 11:27:27.604426654 +0200 @@ -123,7 +123,7 @@ def set_source_reference(self, SourceReference): self.__source_reference = SourceReference - @typed(Re=re._pattern_type) + @typed(Re=re.Pattern) def contains_string(self, Re): return self.__check_code(lambda x: Re.search(x) is not None) def is_empty(self): return not self.__check_code(lambda x: len(x) != 0) def is_whitespace(self): return not self.__check_code(lambda x: len(x.strip()) != 0)