Skip to content
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

Fix re Pattern.groupindex annotation. #1106

Merged
merged 1 commit into from
Mar 28, 2017
Merged

Conversation

gwk
Copy link
Contributor

@gwk gwk commented Mar 27, 2017

No description provided.

@@ -44,7 +44,7 @@ class SRE_Pattern(object):

def compile(pattern: str, flags: int, code: List[int],
groups: int = ...,
groupindex: Mapping[int, int] = ...,
groupindex: Mapping[str, int] = ...,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was a guess, based on the name.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct from looking at the C code.

@JelleZijlstra
Copy link
Member

Thanks!

@gwk gwk deleted the pr-groupindex branch February 5, 2018 17:54
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 this pull request may close these issues.

2 participants