mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-19 10:21:14 +08:00
enable 6 more test folders
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
from enum import Enum
|
||||
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Type, Union
|
||||
from typing import Any, Callable, Dict, Iterator, List, Mapping, Optional, Tuple, Type, Union
|
||||
|
||||
from django.template.context import Context
|
||||
from django.http.request import HttpRequest
|
||||
from django.template.context import Context as Context
|
||||
from django.template.engine import Engine
|
||||
from django.template.library import Library
|
||||
from django.template.loaders.base import Loader
|
||||
@@ -58,11 +59,9 @@ class Template:
|
||||
engine: Optional[Engine] = ...,
|
||||
) -> None: ...
|
||||
def __iter__(self) -> None: ...
|
||||
def render(self, context: Context) -> Any: ...
|
||||
def render(self, context: Union[Context, Dict[str, Any]], request: Optional[HttpRequest] = ...) -> Any: ...
|
||||
def compile_nodelist(self) -> NodeList: ...
|
||||
def get_exception_info(
|
||||
self, exception: Exception, token: Token
|
||||
) -> Dict[str, Union[List[Tuple[int, SafeText]], int, str]]: ...
|
||||
def get_exception_info(self, exception: Exception, token: Token) -> Dict[str, Any]: ...
|
||||
|
||||
def linebreak_iter(template_source: str) -> Iterator[int]: ...
|
||||
|
||||
@@ -141,7 +140,7 @@ class Variable:
|
||||
translate: bool = ...
|
||||
message_context: Optional[str] = ...
|
||||
def __init__(self, var: Union[Dict[Any, Any], str]) -> None: ...
|
||||
def resolve(self, context: Union[Dict[str, Dict[str, Union[int, str]]], Context, int, str]) -> Any: ...
|
||||
def resolve(self, context: Union[Mapping[str, Mapping[str, Any]], Context, int, str]) -> Any: ...
|
||||
|
||||
class Node:
|
||||
must_be_first: bool = ...
|
||||
|
||||
Reference in New Issue
Block a user