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],