Skip to content

Commit 708996d

Browse files
authored
regex: add support for RegexFlag class (#8881)
1 parent c9e6bd2 commit 708996d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

stubs/regex/regex/_regex_core.pyi

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,45 @@
1+
import enum
12
from typing import AnyStr
23

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

7+
class RegexFlag(enum.IntFlag):
8+
A: int
9+
ASCII: int
10+
B: int
11+
BESTMATCH: int
12+
D: int
13+
DEBUG: int
14+
E: int
15+
ENHANCEMATCH: int
16+
F: int
17+
FULLCASE: int
18+
I: int
19+
IGNORECASE: int
20+
L: int
21+
LOCALE: int
22+
M: int
23+
MULTILINE: int
24+
P: int
25+
POSIX: int
26+
R: int
27+
REVERSE: int
28+
T: int
29+
TEMPLATE: int
30+
S: int
31+
DOTALL: int
32+
U: int
33+
UNICODE: int
34+
V0: int
35+
VERSION0: int
36+
V1: int
37+
VERSION1: int
38+
W: int
39+
WORD: int
40+
X: int
41+
VERBOSE: int
42+
643
A: int
744
ASCII: int
845
B: int

0 commit comments

Comments
 (0)