mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 06:21:58 +08:00
move django.conf.urls
This commit is contained in:
8
django-stubs/conf/urls/i18n.pyi
Normal file
8
django-stubs/conf/urls/i18n.pyi
Normal file
@@ -0,0 +1,8 @@
|
||||
from typing import Any, List, Tuple, Callable
|
||||
|
||||
from django.urls.resolvers import URLPattern
|
||||
|
||||
def i18n_patterns(*urls: Any, prefix_default_language: bool = ...) -> List[List[URLPattern]]: ...
|
||||
def is_language_prefix_patterns_used(urlconf: str) -> Tuple[bool, bool]: ...
|
||||
|
||||
urlpatterns: List[Callable]
|
||||
5
django-stubs/conf/urls/static.pyi
Normal file
5
django-stubs/conf/urls/static.pyi
Normal file
@@ -0,0 +1,5 @@
|
||||
from typing import Any, Callable, List
|
||||
|
||||
from django.urls.resolvers import URLPattern
|
||||
|
||||
def static(prefix: str, view: Callable = ..., **kwargs: Any) -> List[URLPattern]: ...
|
||||
Reference in New Issue
Block a user