Files
django-stubs/django-stubs/utils/tree.pyi
Maxim Kurnikov b636d24051 fixes for stubs
2019-01-31 18:28:18 +03:00

19 lines
711 B
Python

from typing import Any, Dict, Iterable, Optional, Tuple, Union
from django.db.models.sql.where import NothingNode
class Node:
default: str = ...
connector: str = ...
negated: bool = ...
def __init__(
self, children: Optional[Iterable[Union[Node, NothingNode]]] = ..., connector: Optional[str] = ..., negated: bool = ...
) -> None: ...
def __deepcopy__(self, memodict: Dict[Any, Any]) -> Node: ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
def __contains__(self, other: Tuple[str, int]) -> bool: ...
def __hash__(self) -> int: ...
def add(self, data: Any, conn_type: str, squash: bool = ...) -> Any: ...
def negate(self) -> None: ...