mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-21 03:11:17 +08:00
initial commit
This commit is contained in:
31
django/contrib/sitemaps/views.pyi
Normal file
31
django/contrib/sitemaps/views.pyi
Normal file
@@ -0,0 +1,31 @@
|
||||
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: ...
|
||||
Reference in New Issue
Block a user