mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
add Q object
This commit is contained in:
@@ -13,4 +13,5 @@ from .deletion import (CASCADE as CASCADE,
|
|||||||
SET_DEFAULT as SET_DEFAULT,
|
SET_DEFAULT as SET_DEFAULT,
|
||||||
SET_NULL as SET_NULL,
|
SET_NULL as SET_NULL,
|
||||||
DO_NOTHING as DO_NOTHING)
|
DO_NOTHING as DO_NOTHING)
|
||||||
from .query import QuerySet as QuerySet
|
from .query import QuerySet as QuerySet
|
||||||
|
from .query_utils import Q as Q
|
||||||
@@ -1,2 +1,12 @@
|
|||||||
class RegisterLookupMixin:
|
class RegisterLookupMixin:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class Q(object):
|
||||||
|
def __init__(self, *args, **kwargs) -> None: ...
|
||||||
|
|
||||||
|
def __or__(self, other: Q) -> Q: ...
|
||||||
|
|
||||||
|
def __and__(self, other: Q) -> Q: ...
|
||||||
|
|
||||||
|
def __invert__(self) -> Q: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user