better stubs

This commit is contained in:
Maxim Kurnikov
2018-08-05 03:13:19 +03:00
parent 4013fe4d03
commit fa718b8e55
380 changed files with 11805 additions and 8503 deletions

View File

@@ -1,13 +1,7 @@
# Stubs for django.utils.html (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from html.parser import HTMLParser
from typing import Any, Optional
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union
from django.db.models.base import Model
from django.utils.safestring import SafeText
from typing import Any, Dict, List, Optional, Tuple, Union
TRAILING_PUNCTUATION_CHARS: str
WRAPPING_PUNCTUATION: Any
@@ -16,23 +10,18 @@ unencoded_ampersands_re: Any
word_split_re: Any
simple_url_re: Any
simple_url_2_re: Any
_html_escapes: Any
def escape(text: Optional[Union[Model, int, str]]) -> SafeText: ...
_js_escapes: Any
def escape(text: Any) -> SafeText: ...
def escapejs(value: str) -> SafeText: ...
_json_script_escapes: Any
def json_script(value: Dict[str, str], element_id: SafeText) -> SafeText: ...
def json_script(
value: Union[str, Dict[str, str]], element_id: str
) -> SafeText: ...
def conditional_escape(text: Any) -> 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]], List[Tuple[str, str]]],
args_generator: Union[List[Tuple[str]], Iterator[Any]],
) -> SafeText: ...
def linebreaks(value: str, autoescape: bool = ...) -> str: ...
@@ -44,7 +33,6 @@ class MLStripper(HTMLParser):
def handle_charref(self, name: str) -> None: ...
def get_data(self) -> str: ...
def _strip_once(value: str) -> str: ...
def strip_tags(value: str) -> str: ...
def strip_spaces_between_tags(value: str) -> str: ...
def smart_urlquote(url: str) -> str: ...