re.Match.lastgroup is str rather than AnyStr (#6776)

This commit is contained in:
Joseph Young
2022-01-01 13:14:23 +00:00
committed by GitHub
parent 764abe8cff
commit d43cd997a4

View File

@@ -574,7 +574,7 @@ class Match(Generic[AnyStr]):
pos: int
endpos: int
lastindex: int | None
lastgroup: AnyStr | None
lastgroup: str | None
string: AnyStr
# The regular expression object whose match() or search() method produced