mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-03-05 06:34:16 +08:00
35 lines
815 B
Python
35 lines
815 B
Python
from django.contrib.flatpages.sitemaps import FlatPageSitemap
|
|
from django.contrib.sitemaps import (
|
|
GenericSitemap,
|
|
Sitemap,
|
|
)
|
|
from django.core.handlers.wsgi import WSGIRequest
|
|
from django.template.response import TemplateResponse
|
|
from typing import (
|
|
Callable,
|
|
Dict,
|
|
Optional,
|
|
Type,
|
|
Union,
|
|
)
|
|
|
|
|
|
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, Union[Type[Sitemap], Type[FlatPageSitemap], GenericSitemap]],
|
|
section: Optional[str] = ...,
|
|
template_name: str = ...,
|
|
content_type: str = ...
|
|
) -> TemplateResponse: ...
|
|
|
|
|
|
def x_robots_tag(func: Callable) -> Callable: ... |