[The annotation for `typing.Match.__getitem__`](https://github.com/python/typeshed/blob/9795bae6f7bca95efcc96a7b470c92d0ad2b9e4e/stdlib/typing.pyi#L578) states that it returns an `AnyStr`. However, it can also return `None` when the specified group was not captured.
Activity
srittau commentedon May 28, 2021
Basically a duplicate of #3902.