Files
django-stubs/django/contrib/sitemaps/views.pyi
Maxim Kurnikov a9f215bf64 initial commit
2018-07-29 18:12:23 +03:00

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: ...