mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -2,7 +2,6 @@ from typing import Any, Dict, List, Optional, Union
|
||||
|
||||
from django.template.defaulttags import TemplateLiteral
|
||||
|
||||
|
||||
class TokenBase:
|
||||
id: Any = ...
|
||||
value: Any = ...
|
||||
@@ -24,9 +23,7 @@ class Literal(TokenBase):
|
||||
def __init__(self, value: Optional[Union[List[int], int]]) -> None: ...
|
||||
def display(self): ...
|
||||
def nud(self, parser: IfParser) -> Literal: ...
|
||||
def eval(
|
||||
self, context: Dict[Any, Any]
|
||||
) -> Optional[Union[List[int], int]]: ...
|
||||
def eval(self, context: Dict[Any, Any]) -> Optional[Union[List[int], int]]: ...
|
||||
|
||||
class EndToken(TokenBase):
|
||||
lbp: int = ...
|
||||
@@ -39,15 +36,9 @@ class IfParser:
|
||||
current_token: Any = ...
|
||||
def __init__(
|
||||
self,
|
||||
tokens: Union[
|
||||
List[Optional[Union[List[int], str]]],
|
||||
List[Optional[Union[int, str]]],
|
||||
List[Union[List[int], int, str]],
|
||||
],
|
||||
tokens: Union[List[Optional[Union[List[int], str]]], List[Optional[Union[int, str]]], List[Union[List[int], int, str]]],
|
||||
) -> None: ...
|
||||
def translate_token(
|
||||
self, token: Optional[Union[List[int], int, str]]
|
||||
) -> Literal: ...
|
||||
def translate_token(self, token: Optional[Union[List[int], int, str]]) -> Literal: ...
|
||||
def next_token(self) -> Literal: ...
|
||||
def parse(self) -> TemplateLiteral: ...
|
||||
def expression(self, rbp: int = ...) -> Literal: ...
|
||||
|
||||
Reference in New Issue
Block a user