From d43cd997a47513be3e34c32cc9ef96eb266611ed Mon Sep 17 00:00:00 2001 From: Joseph Young <80432516+jpy-git@users.noreply.github.com> Date: Sat, 1 Jan 2022 13:14:23 +0000 Subject: [PATCH] re.Match.lastgroup is str rather than AnyStr (#6776) --- stdlib/typing.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index 73a997cb2..6e461b8aa 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -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