diff --git a/stdlib/2.7/re.pyi b/stdlib/2.7/re.pyi index 7c47bcd89..8b88a7822 100644 --- a/stdlib/2.7/re.pyi +++ b/stdlib/2.7/re.pyi @@ -6,7 +6,7 @@ from typing import ( List, Iterator, overload, Callable, Tuple, Sequence, Dict, - Generic, AnyStr, Match, Pattern + Generic, AnyStr, Match, Pattern, Any ) # ----- re variables and constants ----- @@ -51,9 +51,9 @@ def split(pattern: Pattern[AnyStr], string: AnyStr, maxsplit: int = ..., flags: int = ...) -> List[AnyStr]: ... @overload -def findall(pattern: AnyStr, string: AnyStr, flags: int = ...) -> List[AnyStr]: ... +def findall(pattern: AnyStr, string: AnyStr, flags: int = ...) -> List[Any]: ... @overload -def findall(pattern: Pattern[AnyStr], string: AnyStr, flags: int = ...) -> List[AnyStr]: ... +def findall(pattern: Pattern[AnyStr], string: AnyStr, flags: int = ...) -> List[Any]: ... # Return an iterator yielding match objects over all non-overlapping matches # for the RE pattern in string. The string is scanned left-to-right, and diff --git a/stdlib/2.7/typing.pyi b/stdlib/2.7/typing.pyi index 9d7446909..9ea3ed191 100644 --- a/stdlib/2.7/typing.pyi +++ b/stdlib/2.7/typing.pyi @@ -300,7 +300,7 @@ class Pattern(Generic[AnyStr]): endpos: int = ...) -> Match[AnyStr]: ... def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ... def findall(self, string: AnyStr, pos: int = ..., - endpos: int = ...) -> list[AnyStr]: ... + endpos: int = ...) -> list[Any]: ... def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ... diff --git a/stdlib/3/re.pyi b/stdlib/3/re.pyi index 8369133d7..31e3cad01 100644 --- a/stdlib/3/re.pyi +++ b/stdlib/3/re.pyi @@ -7,7 +7,7 @@ from typing import ( List, Iterator, overload, Callable, Tuple, Sequence, Dict, - Generic, AnyStr, Match, Pattern + Generic, AnyStr, Match, Pattern, Any ) # ----- re variables and constants ----- @@ -52,9 +52,9 @@ def split(pattern: Pattern[AnyStr], string: AnyStr, maxsplit: int = ..., flags: int = ...) -> List[AnyStr]: ... @overload -def findall(pattern: AnyStr, string: AnyStr, flags: int = ...) -> List[AnyStr]: ... +def findall(pattern: AnyStr, string: AnyStr, flags: int = ...) -> List[Any]: ... @overload -def findall(pattern: Pattern[AnyStr], string: AnyStr, flags: int = ...) -> List[AnyStr]: ... +def findall(pattern: Pattern[AnyStr], string: AnyStr, flags: int = ...) -> List[Any]: ... # Return an iterator yielding match objects over all non-overlapping matches # for the RE pattern in string. The string is scanned left-to-right, and diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 33235c799..f3031e59c 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -377,7 +377,7 @@ class Pattern(Generic[AnyStr]): endpos: int = ...) -> Match[AnyStr]: ... def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ... def findall(self, string: AnyStr, pos: int = ..., - endpos: int = ...) -> list[AnyStr]: ... + endpos: int = ...) -> list[Any]: ... def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ...