mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 13:04:47 +08:00
31 lines
666 B
Python
31 lines
666 B
Python
from django.contrib.sitemaps import Sitemap
|
|
from django.core.handlers.wsgi import WSGIRequest
|
|
from django.template.response import TemplateResponse
|
|
from typing import (
|
|
Any,
|
|
Callable,
|
|
Dict,
|
|
Optional,
|
|
Type,
|
|
)
|
|
|
|
|
|
def index(
|
|
request: WSGIRequest,
|
|
sitemaps: Dict[str, Type[Sitemap]],
|
|
template_name: str = ...,
|
|
content_type: str = ...,
|
|
sitemap_url_name: str = ...
|
|
) -> TemplateResponse: ...
|
|
|
|
|
|
def sitemap(
|
|
request: WSGIRequest,
|
|
sitemaps: Dict[str, Any],
|
|
section: Optional[str] = ...,
|
|
template_name: str = ...,
|
|
content_type: str = ...
|
|
) -> TemplateResponse: ...
|
|
|
|
|
|
def x_robots_tag(func: Callable) -> Callable: ... |