mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 10:51:16 +08:00
reformat with black
This commit is contained in:
@@ -8,6 +8,7 @@ from typing import Any, Optional
|
||||
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
|
||||
DOTS: Any
|
||||
@@ -28,7 +29,11 @@ _json_script_escapes: Any
|
||||
def json_script(value: Dict[str, str], element_id: SafeText) -> 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]]]) -> SafeText: ...
|
||||
def format_html_join(
|
||||
sep: str,
|
||||
format_string: str,
|
||||
args_generator: Union[List[Tuple[str]], List[Tuple[str, str]]],
|
||||
) -> SafeText: ...
|
||||
def linebreaks(value: str, autoescape: bool = ...) -> str: ...
|
||||
|
||||
class MLStripper(HTMLParser):
|
||||
@@ -43,6 +48,11 @@ 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: ...
|
||||
def urlize(text: str, trim_url_limit: Optional[int] = ..., nofollow: bool = ..., autoescape: bool = ...) -> str: ...
|
||||
def urlize(
|
||||
text: str,
|
||||
trim_url_limit: Optional[int] = ...,
|
||||
nofollow: bool = ...,
|
||||
autoescape: bool = ...,
|
||||
) -> str: ...
|
||||
def avoid_wrapping(value: str) -> str: ...
|
||||
def html_safe(klass: Any): ...
|
||||
|
||||
Reference in New Issue
Block a user