-
-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stubs for
django.contrib.postgres.expressions
(#1765)
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from typing import Any | ||
|
||
from django.contrib.postgres.fields import ArrayField | ||
from django.db.models import Subquery | ||
from django.db.models.query import QuerySet | ||
from django.db.models.sql.query import Query | ||
from django.utils.functional import cached_property | ||
|
||
class ArraySubquery(Subquery): | ||
template: str | ||
|
||
def __init__(self, queryset: Query | QuerySet[Any], **kwargs: Any) -> None: ... | ||
@cached_property | ||
def output_field(self) -> ArrayField: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters