mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 12:14:28 +08:00
15 lines
896 B
Python
15 lines
896 B
Python
# Stubs for django.contrib.sitemaps.views (Python 3.6)
|
|
#
|
|
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
|
|
|
from typing import Any, Optional
|
|
|
|
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 x_robots_tag(func: Callable) -> Callable: ...
|
|
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: ...
|