mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 13:35:01 +08:00
first version finished
This commit is contained in:
28
django/utils/regex_helper.pyi
Normal file
28
django/utils/regex_helper.pyi
Normal file
@@ -0,0 +1,28 @@
|
||||
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, None], Tuple[int, str]]: ...
|
||||
|
||||
|
||||
def normalize(
|
||||
pattern: str
|
||||
) -> Union[List[Tuple[str, List[Any]]], List[Union[Tuple[str, List[Any]], Tuple[str, List[str]]]], List[Tuple[str, List[str]]]]: ...
|
||||
|
||||
|
||||
def walk_to_end(ch: str, input_iter: Iterator[Any]) -> None: ...
|
||||
Reference in New Issue
Block a user