diff --git a/stdlib/2.7/typing.pyi b/stdlib/2.7/typing.pyi index 77873df63..461a6e76e 100644 --- a/stdlib/2.7/typing.pyi +++ b/stdlib/2.7/typing.pyi @@ -283,9 +283,9 @@ class Match(Generic[AnyStr]): def groups(self, default: AnyStr = ...) -> Sequence[AnyStr]: ... def groupdict(self, default: AnyStr = ...) -> dict[str, AnyStr]: ... - def start(self, group: int = ...) -> int: ... - def end(self, group: int = ...) -> int: ... - def span(self, group: int = ...) -> Tuple[int, int]: ... + def start(self, group: Union[int, str] = ...) -> int: ... + def end(self, group: Union[int, str] = ...) -> int: ... + def span(self, group: Union[int, str] = ...) -> Tuple[int, int]: ... class Pattern(Generic[AnyStr]): flags = 0 diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 8bb760673..2bbb8bbea 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -360,9 +360,9 @@ class Match(Generic[AnyStr]): def groups(self, default: AnyStr = ...) -> Sequence[AnyStr]: ... def groupdict(self, default: AnyStr = ...) -> dict[str, AnyStr]: ... - def start(self, group: int = ...) -> int: ... - def end(self, group: int = ...) -> int: ... - def span(self, group: int = ...) -> Tuple[int, int]: ... + def start(self, group: Union[int, str] = ...) -> int: ... + def end(self, group: Union[int, str] = ...) -> int: ... + def span(self, group: Union[int, str] = ...) -> Tuple[int, int]: ... class Pattern(Generic[AnyStr]): flags = 0