reformat with black

This commit is contained in:
Maxim Kurnikov
2018-07-29 23:34:58 +03:00
parent 4866354600
commit cf85607969
343 changed files with 6054 additions and 2158 deletions
+2
View File
@@ -6,7 +6,9 @@ from django.utils.functional import LazyObject
from typing import Any, Optional
from typing import Any, List
ENVIRONMENT_VARIABLE: str
class LazySettings(LazyObject):
_wrapped: Any = ...
def _setup(self, name: None = ...) -> None: ...
+4 -1
View File
@@ -7,9 +7,12 @@ from typing import Any, Optional
from django.urls.resolvers import URLPattern, URLResolver
from typing import Any, Optional, Union
handler400: Any
handler403: Any
handler404: Any
handler500: Any
def url(regex: str, view: Any, kwargs: Any = ..., name: Optional[str] = ...) -> Union[URLPattern, URLResolver]: ...
def url(
regex: str, view: Any, kwargs: Any = ..., name: Optional[str] = ...
) -> Union[URLPattern, URLResolver]: ...
+4 -1
View File
@@ -6,7 +6,10 @@ from typing import Any
from django.urls.resolvers import URLResolver
from typing import Any, List, Tuple, Union
def i18n_patterns(*urls: Any, prefix_default_language: bool = ...) -> Union[List[URLResolver], List[List[Any]]]: ...
def i18n_patterns(
*urls: Any, prefix_default_language: bool = ...
) -> Union[List[URLResolver], List[List[Any]]]: ...
def is_language_prefix_patterns_used(urlconf: str) -> Tuple[bool, bool]: ...
urlpatterns: Any
+1
View File
@@ -6,4 +6,5 @@ from typing import Any
from django.urls.resolvers import URLPattern
from typing import Callable, List
def static(prefix: str, view: Callable = ..., **kwargs: Any) -> List[URLPattern]: ...