mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 14:31:56 +08:00
improved version
This commit is contained in:
@@ -14,11 +14,11 @@ class IfParser:
|
||||
def expression(self, rbp: int = ...) -> Literal: ...
|
||||
def next_token(self) -> Literal: ...
|
||||
def parse(self) -> TemplateLiteral: ...
|
||||
def translate_token(self, token: Union[List[int], str, int]) -> Literal: ...
|
||||
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[int, List[int]]]: ...
|
||||
def eval(self, context: Dict[Any, Any]) -> Optional[Union[List[int], int]]: ...
|
||||
def nud(self, parser: IfParser) -> Literal: ...
|
||||
Reference in New Issue
Block a user