mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-21 09:08:28 +08:00
17 lines
263 B
Python
17 lines
263 B
Python
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[URLPattern, URLResolver]: ... |