mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
add Q object
This commit is contained in:
@@ -14,3 +14,4 @@ from .deletion import (CASCADE as CASCADE,
|
||||
SET_NULL as SET_NULL,
|
||||
DO_NOTHING as DO_NOTHING)
|
||||
from .query import QuerySet as QuerySet
|
||||
from .query_utils import Q as Q
|
||||
@@ -1,2 +1,12 @@
|
||||
class RegisterLookupMixin:
|
||||
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