make pep561 compliant

This commit is contained in:
Maxim Kurnikov
2018-07-29 20:19:43 +03:00
parent 89bb6eac75
commit f471b7b1bf
372 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
from django.db.models.base import Model
from django.utils.safestring import SafeText
from typing import (
Any,
Dict,
List,
Optional,
Tuple,
Union,
)
def _strip_once(value: str) -> str: ...
def avoid_wrapping(value: str) -> str: ...
def conditional_escape(text: Any) -> str: ...
def escape(text: Optional[Union[Model, int, str]]) -> SafeText: ...
def escapejs(value: str) -> SafeText: ...
def format_html(format_string: str, *args, **kwargs) -> SafeText: ...
def format_html_join(
sep: str,
format_string: str,
args_generator: Union[List[Tuple[str]], List[Tuple[str, str]]]
) -> SafeText: ...
def json_script(value: Dict[str, str], element_id: SafeText) -> SafeText: ...
def linebreaks(value: str, autoescape: bool = ...) -> str: ...
def smart_urlquote(url: str) -> str: ...
def strip_spaces_between_tags(value: str) -> str: ...
def strip_tags(value: str) -> str: ...
def urlize(
text: str,
trim_url_limit: Optional[int] = ...,
nofollow: bool = ...,
autoescape: bool = ...
) -> str: ...
class MLStripper:
def __init__(self) -> None: ...
def get_data(self) -> str: ...
def handle_charref(self, name: str) -> None: ...
def handle_data(self, d: str) -> None: ...
def handle_entityref(self, name: str) -> None: ...