run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -5,12 +5,9 @@ from django.db.models.fields.related_lookups import RelatedLookupMixin
from django.db.models.lookups import BuiltinLookup, FieldGetDbPrepValueMixin
from django.db.models.sql.where import ExtraWhere, NothingNode
class Node:
default: str = ...
children: Union[
List[Tuple[str, int]], List[django.db.models.lookups.Contains]
] = ...
children: Union[List[Tuple[str, int]], List[django.db.models.lookups.Contains]] = ...
connector: str = ...
negated: bool = ...
def __init__(
@@ -33,12 +30,7 @@ class Node:
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
def __contains__(self, other: Tuple[str, int]) -> bool: ...
def __eq__(
self,
other: Union[
Tuple[str, List[Any]], BuiltinLookup, ExtraWhere, NothingNode, Node
],
) -> bool: ...
def __eq__(self, other: Union[Tuple[str, List[Any]], BuiltinLookup, ExtraWhere, NothingNode, Node]) -> bool: ...
def __hash__(self) -> int: ...
def add(self, data: Any, conn_type: str, squash: bool = ...) -> Any: ...
def negate(self) -> None: ...