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

@@ -4,7 +4,6 @@ from django.db.models.base import Model
from django.utils.functional import SimpleLazyObject
from django.utils.safestring import SafeText
def capfirst(x: Optional[str]) -> Optional[str]: ...
re_words: Any
@@ -17,15 +16,9 @@ def wrap(text: str, width: int) -> str: ...
class Truncator(SimpleLazyObject):
def __init__(self, text: Union[Model, str]) -> None: ...
def add_truncation_text(
self, text: str, truncate: Optional[str] = ...
) -> str: ...
def chars(
self, num: int, truncate: Optional[str] = ..., html: bool = ...
) -> str: ...
def words(
self, num: int, truncate: Optional[str] = ..., html: bool = ...
) -> str: ...
def add_truncation_text(self, text: str, truncate: Optional[str] = ...) -> str: ...
def chars(self, num: int, truncate: Optional[str] = ..., html: bool = ...) -> str: ...
def words(self, num: int, truncate: Optional[str] = ..., html: bool = ...) -> str: ...
def get_valid_filename(s: str) -> str: ...
def get_text_list(list_: List[str], last_word: str = ...) -> str: ...