Skip to content

Complete Py3 stub for sre_constants #1709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2017
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
74 changes: 74 additions & 0 deletions stdlib/3/sre_constants.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,77 @@ SRE_FLAG_ASCII = ... # type: int
SRE_INFO_PREFIX = ... # type: int
SRE_INFO_LITERAL = ... # type: int
SRE_INFO_CHARSET = ... # type: int


# Stubgen above; manually defined constants below (dynamic at runtime)

# from OPCODES
FAILURE = ... # type: _NamedIntConstant
SUCCESS = ... # type: _NamedIntConstant
ANY = ... # type: _NamedIntConstant
ANY_ALL = ... # type: _NamedIntConstant
ASSERT = ... # type: _NamedIntConstant
ASSERT_NOT = ... # type: _NamedIntConstant
AT = ... # type: _NamedIntConstant
BRANCH = ... # type: _NamedIntConstant
CALL = ... # type: _NamedIntConstant
CATEGORY = ... # type: _NamedIntConstant
CHARSET = ... # type: _NamedIntConstant
BIGCHARSET = ... # type: _NamedIntConstant
GROUPREF = ... # type: _NamedIntConstant
GROUPREF_EXISTS = ... # type: _NamedIntConstant
GROUPREF_IGNORE = ... # type: _NamedIntConstant
IN = ... # type: _NamedIntConstant
IN_IGNORE = ... # type: _NamedIntConstant
INFO = ... # type: _NamedIntConstant
JUMP = ... # type: _NamedIntConstant
LITERAL = ... # type: _NamedIntConstant
LITERAL_IGNORE = ... # type: _NamedIntConstant
MARK = ... # type: _NamedIntConstant
MAX_UNTIL = ... # type: _NamedIntConstant
MIN_UNTIL = ... # type: _NamedIntConstant
NOT_LITERAL = ... # type: _NamedIntConstant
NOT_LITERAL_IGNORE = ... # type: _NamedIntConstant
NEGATE = ... # type: _NamedIntConstant
RANGE = ... # type: _NamedIntConstant
REPEAT = ... # type: _NamedIntConstant
REPEAT_ONE = ... # type: _NamedIntConstant
SUBPATTERN = ... # type: _NamedIntConstant
MIN_REPEAT_ONE = ... # type: _NamedIntConstant
RANGE_IGNORE = ... # type: _NamedIntConstant
MIN_REPEAT = ... # type: _NamedIntConstant
MAX_REPEAT = ... # type: _NamedIntConstant

# from ATCODES
AT_BEGINNING = ... # type: _NamedIntConstant
AT_BEGINNING_LINE = ... # type: _NamedIntConstant
AT_BEGINNING_STRING = ... # type: _NamedIntConstant
AT_BOUNDARY = ... # type: _NamedIntConstant
AT_NON_BOUNDARY = ... # type: _NamedIntConstant
AT_END = ... # type: _NamedIntConstant
AT_END_LINE = ... # type: _NamedIntConstant
AT_END_STRING = ... # type: _NamedIntConstant
AT_LOC_BOUNDARY = ... # type: _NamedIntConstant
AT_LOC_NON_BOUNDARY = ... # type: _NamedIntConstant
AT_UNI_BOUNDARY = ... # type: _NamedIntConstant
AT_UNI_NON_BOUNDARY = ... # type: _NamedIntConstant

# from CHCODES
CATEGORY_DIGIT = ... # type: _NamedIntConstant
CATEGORY_NOT_DIGIT = ... # type: _NamedIntConstant
CATEGORY_SPACE = ... # type: _NamedIntConstant
CATEGORY_NOT_SPACE = ... # type: _NamedIntConstant
CATEGORY_WORD = ... # type: _NamedIntConstant
CATEGORY_NOT_WORD = ... # type: _NamedIntConstant
CATEGORY_LINEBREAK = ... # type: _NamedIntConstant
CATEGORY_NOT_LINEBREAK = ... # type: _NamedIntConstant
CATEGORY_LOC_WORD = ... # type: _NamedIntConstant
CATEGORY_LOC_NOT_WORD = ... # type: _NamedIntConstant
CATEGORY_UNI_DIGIT = ... # type: _NamedIntConstant
CATEGORY_UNI_NOT_DIGIT = ... # type: _NamedIntConstant
CATEGORY_UNI_SPACE = ... # type: _NamedIntConstant
CATEGORY_UNI_NOT_SPACE = ... # type: _NamedIntConstant
CATEGORY_UNI_WORD = ... # type: _NamedIntConstant
CATEGORY_UNI_NOT_WORD = ... # type: _NamedIntConstant
CATEGORY_UNI_LINEBREAK = ... # type: _NamedIntConstant
CATEGORY_UNI_NOT_LINEBREAK = ... # type: _NamedIntConstant