Files
django-stubs/django/utils/tree.pyi
2018-07-29 18:27:46 +03:00

29 lines
904 B
Python

from django.db.models.query_utils import Q
from django.db.models.sql.where import WhereNode
from typing import (
Any,
Dict,
Optional,
Tuple,
)
class Node:
def __bool__(self) -> bool: ...
def __contains__(self, other: Tuple[str, int]) -> bool: ...
def __deepcopy__(self, memodict: Dict[Any, Any]) -> Q: ...
def __eq__(self, other: Any) -> bool: ...
def __hash__(self) -> int: ...
def __init__(self, children: Any = ..., connector: Optional[str] = ..., negated: bool = ...) -> None: ...
def __len__(self) -> int: ...
def __repr__(self) -> str: ...
def __str__(self) -> str: ...
@classmethod
def _new_instance(
cls,
children: Any = ...,
connector: str = ...,
negated: bool = ...
) -> WhereNode: ...
def add(self, data: Any, conn_type: str, squash: bool = ...) -> Any: ...
def negate(self) -> None: ...