third iteration of stubs

This commit is contained in:
Maxim Kurnikov
2018-08-11 00:19:50 +03:00
parent fa718b8e55
commit c6bceb19f4
216 changed files with 16306 additions and 3006 deletions

View File

@@ -1,6 +1,9 @@
from html.parser import HTMLParser
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union
from django.db.models.base import Model
from django.db.models.fields.files import FieldFile
from django.forms.utils import ErrorList
from django.utils.safestring import SafeText
TRAILING_PUNCTUATION_CHARS: str
@@ -11,17 +14,19 @@ word_split_re: Any
simple_url_re: Any
simple_url_2_re: Any
def escape(text: Any) -> SafeText: ...
def escape(text: Optional[Union[Model, FieldFile, int, str]]) -> SafeText: ...
def escapejs(value: str) -> SafeText: ...
def json_script(
value: Union[str, Dict[str, str]], element_id: str
value: Union[Dict[str, str], str], element_id: str
) -> SafeText: ...
def conditional_escape(text: Any) -> str: ...
def conditional_escape(
text: Optional[Union[Model, FieldFile, ErrorList, int, str]]
) -> str: ...
def format_html(format_string: str, *args: Any, **kwargs: Any) -> SafeText: ...
def format_html_join(
sep: str,
format_string: str,
args_generator: Union[List[Tuple[str]], Iterator[Any]],
args_generator: Union[Iterator[Any], List[Tuple[str]]],
) -> SafeText: ...
def linebreaks(value: str, autoescape: bool = ...) -> str: ...