mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-27 12:02:20 +08:00
first version finished
This commit is contained in:
29
django/utils/tree.pyi
Normal file
29
django/utils/tree.pyi
Normal 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: ...
|
||||
Reference in New Issue
Block a user