mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 21:14:49 +08:00
24 lines
749 B
Python
24 lines
749 B
Python
from django.template.defaulttags import TemplateLiteral
|
|
from typing import (
|
|
Any,
|
|
Dict,
|
|
List,
|
|
Optional,
|
|
Union,
|
|
)
|
|
|
|
|
|
class IfParser:
|
|
def __init__(self, tokens: Any) -> None: ...
|
|
def create_var(self, value: Optional[Union[List[int], int]]) -> Literal: ...
|
|
def expression(self, rbp: int = ...) -> Literal: ...
|
|
def next_token(self) -> Literal: ...
|
|
def parse(self) -> TemplateLiteral: ...
|
|
def translate_token(self, token: Union[str, List[int], int]) -> Literal: ...
|
|
|
|
|
|
class Literal:
|
|
def __init__(self, value: Optional[int]) -> None: ...
|
|
def __repr__(self) -> str: ...
|
|
def eval(self, context: Dict[Any, Any]) -> Optional[Union[List[int], int]]: ...
|
|
def nud(self, parser: IfParser) -> Literal: ... |