mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 05:51:53 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user