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

@@ -24,9 +24,7 @@ class Settings:
class UserSettingsHolder:
SETTINGS_MODULE: Any = ...
default_settings: django.conf.Settings = ...
def __init__(
self, default_settings: Union[Settings, UserSettingsHolder]
) -> None: ...
def __init__(self, default_settings: Union[Settings, UserSettingsHolder]) -> None: ...
def __getattr__(self, name: str) -> Any: ...
def __setattr__(self, name: str, value: Any) -> None: ...
def __delattr__(self, name: str) -> None: ...

View File

@@ -21,12 +21,7 @@ def url(
]
],
kwargs: Optional[
Union[
Dict[str, Dict[str, Type[FlatPageSitemap]]],
Dict[str, Dict[str, Sitemap]],
Dict[str, OrderedDict],
Dict[str, str],
]
Union[Dict[str, Dict[str, Type[FlatPageSitemap]]], Dict[str, Dict[str, Sitemap]], Dict[str, OrderedDict], Dict[str, str]]
] = ...,
name: Optional[str] = ...,
) -> Union[URLPattern, URLResolver]: ...

View File

@@ -2,7 +2,6 @@ from typing import Any, List, Tuple, Union
from django.urls.resolvers import URLPattern, URLResolver
def i18n_patterns(
*urls: Any, prefix_default_language: bool = ...
) -> Union[List[List[Any]], List[URLPattern], List[URLResolver]]: ...

View File

@@ -2,7 +2,4 @@ from typing import Any, Callable, List
from django.urls.resolvers import URLPattern
def static(
prefix: str, view: Callable = ..., **kwargs: Any
) -> List[URLPattern]: ...
def static(prefix: str, view: Callable = ..., **kwargs: Any) -> List[URLPattern]: ...