diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index aafb1fbdf1b3..2eb4847d51bf 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -568,7 +568,7 @@ class Match(Generic[AnyStr]): def group(self, __group: Union[str, int] = ...) -> AnyStr: ... @overload def group(self, __group1: Union[str, int], __group2: Union[str, int], *groups: Union[str, int]) -> Tuple[AnyStr, ...]: ... - def groups(self, default: AnyStr = ...) -> Sequence[AnyStr]: ... + def groups(self, default: AnyStr = ...) -> Sequence[Union[Any, AnyStr]]: ... def groupdict(self, default: AnyStr = ...) -> dict[str, AnyStr]: ... def start(self, __group: Union[int, str] = ...) -> int: ... def end(self, __group: Union[int, str] = ...) -> int: ...