From 7a610ebc92c43783efc10a60b066e6d566712cfc Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Fri, 20 Feb 2026 00:46:33 -0500 Subject: [PATCH] [regex] Update to 2026.2.19 (#15439) --- stubs/regex/METADATA.toml | 2 +- stubs/regex/regex/__init__.pyi | 1 + stubs/regex/regex/_main.pyi | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stubs/regex/METADATA.toml b/stubs/regex/METADATA.toml index f6ea05fab..b3ff72589 100644 --- a/stubs/regex/METADATA.toml +++ b/stubs/regex/METADATA.toml @@ -1,2 +1,2 @@ -version = "2026.1.15" +version = "2026.2.19" upstream_repository = "https://github.com/mrabarnett/mrab-regex" diff --git a/stubs/regex/regex/__init__.pyi b/stubs/regex/regex/__init__.pyi index 92e7589d0..d6f58927e 100644 --- a/stubs/regex/regex/__init__.pyi +++ b/stubs/regex/regex/__init__.pyi @@ -10,6 +10,7 @@ __all__ = [ "finditer", "fullmatch", "match", + "prefixmatch", "purge", "search", "split", diff --git a/stubs/regex/regex/_main.pyi b/stubs/regex/regex/_main.pyi index a37774c6e..49c66bb02 100644 --- a/stubs/regex/regex/_main.pyi +++ b/stubs/regex/regex/_main.pyi @@ -21,6 +21,7 @@ __all__ = [ "finditer", "fullmatch", "match", + "prefixmatch", "purge", "search", "split", @@ -133,6 +134,9 @@ def match( ignore_unused: bool = False, **kwargs: Any, ) -> Match[bytes] | None: ... + +prefixmatch = match + @overload def fullmatch( pattern: str | Pattern[str], @@ -434,6 +438,7 @@ class Pattern(Generic[AnyStr]): partial: bool = False, timeout: float | None = None, ) -> Match[bytes] | None: ... + prefixmatch = match @overload def fullmatch( self: Pattern[str],