mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 09:56:00 +08:00
initial commit
This commit is contained in:
19
django/template/backends/dummy.pyi
Normal file
19
django/template/backends/dummy.pyi
Normal file
@@ -0,0 +1,19 @@
|
||||
from django.http.request import HttpRequest
|
||||
from typing import (
|
||||
Dict,
|
||||
Optional,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class Template:
|
||||
def render(
|
||||
self,
|
||||
context: Optional[Dict[str, str]] = ...,
|
||||
request: Optional[HttpRequest] = ...
|
||||
) -> str: ...
|
||||
|
||||
|
||||
class TemplateStrings:
|
||||
def __init__(self, params: Dict[str, Union[bool, str]]) -> None: ...
|
||||
def get_template(self, template_name: str) -> Template: ...
|
||||
Reference in New Issue
Block a user