Skip to content

Fix annotation of re.Match 'lastindex' and 'lastgroup' in Python 3#3085

Merged
JelleZijlstra merged 1 commit intopython:masterfrom
mthuurne:match_lastindex_lastgroup_optional
Jun 22, 2019
Merged

Fix annotation of re.Match 'lastindex' and 'lastgroup' in Python 3#3085
JelleZijlstra merged 1 commit intopython:masterfrom
mthuurne:match_lastindex_lastgroup_optional

Conversation

@mthuurne
Copy link
Contributor

Both are None if there were no groups matched. Also lastgroup will be None if the matched group was nameless.

The Python 2 versions of these annotations already used Optional.

Both are None if there were no groups matched. Also 'lastgroup'
will be None if the matched group was nameless.

The Python 2 versions of these annotations already used Optional.
@JelleZijlstra JelleZijlstra merged commit bdd49d0 into python:master Jun 22, 2019
@mthuurne mthuurne deleted the match_lastindex_lastgroup_optional branch June 22, 2019 18:31
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