From 88d0c7a1eb52e6df8fcb2f0cddf50cff1199ddf8 Mon Sep 17 00:00:00 2001 From: jpy-git Date: Sat, 1 Jan 2022 12:49:49 +0000 Subject: [PATCH] re.Match.lastgroup is str rather than AnyStr --- stdlib/typing.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index 73a997cb2869..6e461b8aa260 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