mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-09-03 05:17:01 +08:00
reformat with black
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user