diff --git a/src/ansi_string/ansi_string.py b/src/ansi_string/ansi_string.py index 1e86096..b4c004c 100644 --- a/src/ansi_string/ansi_string.py +++ b/src/ansi_string/ansi_string.py @@ -1030,7 +1030,7 @@ def __str__(self) -> str: return self.__format__(None) @staticmethod - def _re_search(expr:Union[str, "re.Pattern[str]"], string:str, result:List["re.Match[str]"]) -> Union["re.Match[str]", None]: + def _re_search(expr, string:str, result): ''' Helper method so I can assign and check in the same "if" statement '''