Add precise values for enum members where possible (#11299)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
Eric Traut
2024-04-22 07:10:59 -07:00
committed by GitHub
parent b3bfbefa7f
commit 17f1c4628a
36 changed files with 1093 additions and 1087 deletions

View File

@@ -9,40 +9,40 @@ class error(Exception):
def __init__(self, message: str, pattern: AnyStr | None = None, pos: int | None = 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 = 0x80
ASCII = A
B = 0x1000
BESTMATCH = B
D = 0x200
DEBUG = D
E = 0x8000
ENHANCEMATCH = E
F = 0x4000
FULLCASE = F
I = 0x2
IGNORECASE = I
L = 0x4
LOCALE = L
M = 0x8
MULTILINE = M
P = 0x10000
POSIX = P
R = 0x400
REVERSE = R
T = 0x1
TEMPLATE = T
S = 0x10
DOTALL = S
U = 0x20
UNICODE = U
V0 = 0x2000
VERSION0 = V0
V1 = 0x100
VERSION1 = V1
W = 0x800
WORD = W
X = 0x40
VERBOSE = X
A: int
ASCII: int