first version finished

This commit is contained in:
Maxim Kurnikov
2018-07-29 18:27:46 +03:00
parent a9f215bf64
commit c180555415
59 changed files with 2118 additions and 0 deletions

29
django/utils/tree.pyi Normal file
View File

@@ -0,0 +1,29 @@
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: ...