massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / sre_compile.pyi
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
3 \r
4 import sys\r
5 from sre_parse import SubPattern\r
6 from typing import Any, List, Pattern, Tuple, Type, TypeVar, Union\r
7 \r
8 MAXCODE = ...  # type: int\r
9 if sys.version_info < (3, 0):\r
10     STRING_TYPES: Tuple[Type[str], Type[unicode]]\r
11     _IsStringType = int\r
12 else:\r
13     from sre_constants import _NamedIntConstant\r
14     def dis(code: List[_NamedIntConstant]) -> None: ...\r
15     _IsStringType = bool\r
16 \r
17 def isstring(obj: Any) -> _IsStringType: ...\r
18 def compile(p: Union[str, bytes, SubPattern], flags: int = ...) -> Pattern: ...\r