Files
django-stubs/django/utils/regex_helper.pyi
Maxim Kurnikov 89bb6eac75 improved version
2018-07-29 20:06:41 +03:00

28 lines
641 B
Python

from typing import (
Any,
Iterator,
List,
Tuple,
Type,
Union,
)
def contains(
source: Union[str, Group, NonCapture],
inst: Type[Group]
) -> bool: ...
def flatten_result(source: Any) -> Union[Tuple[List[str], List[List[str]]], Tuple[List[str], List[List[Any]]]]: ...
def get_quantifier(ch: str, input_iter: Iterator[Any]) -> Union[Tuple[int, str], Tuple[int, None]]: ...
def normalize(
pattern: str
) -> Union[List[Tuple[str, List[Any]]], List[Tuple[str, List[str]]], List[Union[Tuple[str, List[Any]], Tuple[str, List[str]]]]]: ...
def walk_to_end(ch: str, input_iter: Iterator[Any]) -> None: ...