mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 05:51:53 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user