run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -5,15 +5,12 @@ from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
from django.core.exceptions import ValidationError
from django.utils.safestring import SafeText
def pretty_name(name: str) -> str: ...
def flatatt(attrs: Dict[str, Optional[str]]) -> SafeText: ...
class ErrorDict(dict):
def as_data(self) -> Dict[str, List[ValidationError]]: ...
def get_json_data(
self, escape_html: bool = ...
) -> Dict[str, List[Dict[str, str]]]: ...
def get_json_data(self, escape_html: bool = ...) -> Dict[str, List[Dict[str, str]]]: ...
def as_json(self, escape_html: bool = ...) -> str: ...
def as_ul(self) -> str: ...
def as_text(self) -> str: ...
@@ -22,16 +19,10 @@ class ErrorList(UserList, list):
data: List[Union[django.core.exceptions.ValidationError, str]]
error_class: str = ...
def __init__(
self,
initlist: Optional[
Union[List[ValidationError], List[str], ErrorList]
] = ...,
error_class: Optional[str] = ...,
self, initlist: Optional[Union[List[ValidationError], List[str], ErrorList]] = ..., error_class: Optional[str] = ...
) -> None: ...
def as_data(self) -> List[ValidationError]: ...
def get_json_data(
self, escape_html: bool = ...
) -> List[Dict[str, str]]: ...
def get_json_data(self, escape_html: bool = ...) -> List[Dict[str, str]]: ...
def as_json(self, escape_html: bool = ...) -> str: ...
def as_ul(self) -> str: ...
def as_text(self) -> str: ...
@@ -40,13 +31,7 @@ class ErrorList(UserList, list):
def __getitem__(self, i: Union[int, str]) -> str: ...
def __reduce_ex__(
self, *args: Any, **kwargs: Any
) -> Tuple[
Callable,
Tuple[Type[ErrorList]],
Dict[str, Union[List[ValidationError], str]],
None,
None,
]: ...
) -> Tuple[Callable, Tuple[Type[ErrorList]], Dict[str, Union[List[ValidationError], str]], None, None]: ...
def from_current_timezone(value: datetime) -> datetime: ...
def to_current_timezone(value: datetime) -> datetime: ...