1 # Source: https://hg.python.org/cpython/file/2.7/Lib/sre_compile.py
\r
2 # and https://github.com/python/cpython/blob/master/Lib/sre_compile.py
\r
5 from sre_parse import SubPattern
\r
6 from typing import Any, List, Pattern, Tuple, Type, TypeVar, Union
\r
8 MAXCODE = ... # type: int
\r
9 if sys.version_info < (3, 0):
\r
10 STRING_TYPES: Tuple[Type[str], Type[unicode]]
\r
13 from sre_constants import _NamedIntConstant
\r
14 def dis(code: List[_NamedIntConstant]) -> None: ...
\r
15 _IsStringType = bool
\r
17 def isstring(obj: Any) -> _IsStringType: ...
\r
18 def compile(p: Union[str, bytes, SubPattern], flags: int = ...) -> Pattern: ...
\r