mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 20:54:29 +08:00
* update django sources * pin mypy version, update to 0.740 * fix tests typechecking * fix lint
22 lines
800 B
Python
22 lines
800 B
Python
from typing import Any, Dict, Iterable, Optional, Tuple, Union, Sequence, List
|
|
|
|
from django.db.models.sql.where import NothingNode
|
|
|
|
_NodeChildren = Iterable[Union["Node", NothingNode, Sequence[Any]]]
|
|
|
|
class Node:
|
|
children: List[Any]
|
|
default: Any = ...
|
|
connector: str = ...
|
|
negated: bool = ...
|
|
def __init__(
|
|
self, children: Optional[_NodeChildren] = ..., 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: ...
|