mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 01:45:59 +08:00
initial commit
This commit is contained in:
41
django/urls/base.pyi
Normal file
41
django/urls/base.pyi
Normal file
@@ -0,0 +1,41 @@
|
||||
from django.urls.resolvers import ResolverMatch
|
||||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
Optional,
|
||||
Type,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
def clear_url_caches() -> None: ...
|
||||
|
||||
|
||||
def get_script_prefix() -> str: ...
|
||||
|
||||
|
||||
def get_urlconf(default: None = ...) -> Optional[Union[str, Type[object]]]: ...
|
||||
|
||||
|
||||
def is_valid_path(path: str, urlconf: Optional[str] = ...) -> bool: ...
|
||||
|
||||
|
||||
def resolve(path: str, urlconf: Optional[str] = ...) -> ResolverMatch: ...
|
||||
|
||||
|
||||
def reverse(
|
||||
viewname: Optional[Union[str, Callable]],
|
||||
urlconf: Optional[str] = ...,
|
||||
args: Any = ...,
|
||||
kwargs: Any = ...,
|
||||
current_app: Optional[str] = ...
|
||||
) -> str: ...
|
||||
|
||||
|
||||
def set_script_prefix(prefix: str) -> None: ...
|
||||
|
||||
|
||||
def set_urlconf(urlconf_name: Any) -> None: ...
|
||||
|
||||
|
||||
def translate_url(url: str, lang_code: str) -> str: ...
|
||||
Reference in New Issue
Block a user