Skip to content

Incorrect annotation for Match.__getitem__ #5546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jwodder opened this issue May 28, 2021 · 1 comment
Closed

Incorrect annotation for Match.__getitem__ #5546

jwodder opened this issue May 28, 2021 · 1 comment

Comments

@jwodder
Copy link
Contributor

jwodder commented May 28, 2021

The annotation for typing.Match.__getitem__ states that it returns an AnyStr. However, it can also return None when the specified group was not captured.

@srittau
Copy link
Collaborator

srittau commented May 28, 2021

Basically a duplicate of #3902.

@srittau srittau closed this as completed May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants