Skip to content

Commit c2316b6

Browse files
committed
prefixmatch = match
1 parent f0b3481 commit c2316b6

File tree

1 file changed

+4
-46
lines changed

1 file changed

+4
-46
lines changed

stubs/regex/regex/_main.pyi

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -134,32 +134,9 @@ def match(
134134
ignore_unused: bool = False,
135135
**kwargs: Any,
136136
) -> Match[bytes] | None: ...
137-
@overload
138-
def prefixmatch(
139-
pattern: str | Pattern[str],
140-
string: str,
141-
flags: int = 0,
142-
pos: int | None = None,
143-
endpos: int | None = None,
144-
partial: bool = False,
145-
concurrent: bool | None = None,
146-
timeout: float | None = None,
147-
ignore_unused: bool = False,
148-
**kwargs: Any,
149-
) -> Match[str] | None: ...
150-
@overload
151-
def prefixmatch(
152-
pattern: bytes | Pattern[bytes],
153-
string: ReadableBuffer,
154-
flags: int = 0,
155-
pos: int | None = None,
156-
endpos: int | None = None,
157-
partial: bool = False,
158-
concurrent: bool | None = None,
159-
timeout: float | None = None,
160-
ignore_unused: bool = False,
161-
**kwargs: Any,
162-
) -> Match[bytes] | None: ...
137+
138+
prefixmatch = match
139+
163140
@overload
164141
def fullmatch(
165142
pattern: str | Pattern[str],
@@ -461,26 +438,7 @@ class Pattern(Generic[AnyStr]):
461438
partial: bool = False,
462439
timeout: float | None = None,
463440
) -> Match[bytes] | None: ...
464-
@overload
465-
def prefixmatch(
466-
self: Pattern[str],
467-
string: str,
468-
pos: int | None = None,
469-
endpos: int | None = None,
470-
concurrent: bool | None = None,
471-
partial: bool = False,
472-
timeout: float | None = None,
473-
) -> Match[str] | None: ...
474-
@overload
475-
def prefixmatch(
476-
self: Pattern[bytes],
477-
string: ReadableBuffer,
478-
pos: int | None = None,
479-
endpos: int | None = None,
480-
concurrent: bool | None = None,
481-
partial: bool = False,
482-
timeout: float | None = None,
483-
) -> Match[bytes] | None: ...
441+
prefixmatch = match
484442
@overload
485443
def fullmatch(
486444
self: Pattern[str],

0 commit comments

Comments
 (0)