diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 9c7ad8c7a..cc775a36d 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -421,6 +421,8 @@ class Match(Generic[AnyStr]): 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]: ... + if sys.version_info >= (3, 6): + def __getitem__(self, g: Union[int, str]) -> AnyStr: ... class Pattern(Generic[AnyStr]): flags = 0