mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-29 00:53:25 +08:00
add Q object
This commit is contained in:
1 parent
17be428776
commit
4f828f7644
2 files changed
+11
No files matched your search
@@ -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