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

@@ -3,35 +3,19 @@ from typing import Any, Optional, Union
from django.db.models.base import Model
class DjangoUnicodeDecodeError(UnicodeDecodeError):
obj: bytes = ...
def __init__(self, obj: bytes, *args: Any) -> None: ...
python_2_unicode_compatible: Any
def smart_text(
s: Union[Model, int, str],
encoding: str = ...,
strings_only: bool = ...,
errors: str = ...,
) -> str: ...
def smart_text(s: Union[Model, int, str], encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> str: ...
def is_protected_type(obj: Any) -> bool: ...
def force_text(
s: Optional[Union[bytes, Model, int, str]],
encoding: str = ...,
strings_only: bool = ...,
errors: str = ...,
s: Optional[Union[bytes, Model, int, str]], encoding: str = ..., strings_only: bool = ..., errors: str = ...
) -> Optional[Union[int, str]]: ...
def smart_bytes(
s: Union[int, str],
encoding: str = ...,
strings_only: bool = ...,
errors: str = ...,
) -> bytes: ...
def force_bytes(
s: Any, encoding: str = ..., strings_only: bool = ..., errors: str = ...
) -> Union[bytes, date]: ...
def smart_bytes(s: Union[int, str], encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> bytes: ...
def force_bytes(s: Any, encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> Union[bytes, date]: ...
smart_str = smart_text
force_str = force_text