mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-25 23:27:38 +08:00
initial commit
This commit is contained in:
commit
a9f215bf64
311 files changed
+13433
No files matched your search
@@ -0,0 +1,17 @@
|
||||
from django.urls.resolvers import (
|
||||
URLPattern,
|
||||
URLResolver,
|
||||
)
|
||||
from typing import (
|
||||
Any,
|
||||
Optional,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
def url(
|
||||
regex: str,
|
||||
view: Any,
|
||||
kwargs: Any = ...,
|
||||
name: Optional[str] = ...
|
||||
) -> Union[URLResolver, URLPattern]: ...
|
||||
@@ -0,0 +1,16 @@
|
||||
from django.urls.resolvers import URLResolver
|
||||
from typing import (
|
||||
Any,
|
||||
List,
|
||||
Tuple,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
def i18n_patterns(
|
||||
*urls,
|
||||
prefix_default_language = ...
|
||||
) -> Union[List[List[Any]], List[URLResolver]]: ...
|
||||
|
||||
|
||||
def is_language_prefix_patterns_used(urlconf: str) -> Tuple[bool, bool]: ...
|
||||
@@ -0,0 +1,8 @@
|
||||
from django.urls.resolvers import URLPattern
|
||||
from typing import (
|
||||
Callable,
|
||||
List,
|
||||
)
|
||||
|
||||
|
||||
def static(prefix: str, view: Callable = ..., **kwargs) -> List[URLPattern]: ...
|
||||
Reference in new issue
Block a user