Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions stubs/regex/regex/_regex_core.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,45 @@
import enum
from typing import AnyStr

class error(Exception):
def __init__(self, message: str, pattern: AnyStr | None = ..., pos: int | None = ...) -> None: ...

class RegexFlag(enum.IntFlag):
A: int
ASCII: int
B: int
BESTMATCH: int
D: int
DEBUG: int
E: int
ENHANCEMATCH: int
F: int
FULLCASE: int
I: int
IGNORECASE: int
L: int
LOCALE: int
M: int
MULTILINE: int
P: int
POSIX: int
R: int
REVERSE: int
T: int
TEMPLATE: int
S: int
DOTALL: int
U: int
UNICODE: int
V0: int
VERSION0: int
V1: int
VERSION1: int
W: int
WORD: int
X: int
VERBOSE: int

A: int
ASCII: int
B: int
Expand Down