-
-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
170 additions
and
137 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
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
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 |
---|---|---|
@@ -1 +1,17 @@ | ||
class OrderableAggMixin: ... | ||
from collections.abc import Sequence | ||
from typing import Any | ||
|
||
from django.db.backends.base.base import BaseDatabaseWrapper | ||
from django.db.models.expressions import BaseExpression, Combinable, Expression, OrderByList | ||
from django.db.models.sql.compiler import SQLCompiler, _AsSqlType | ||
from typing_extensions import Self | ||
|
||
class OrderableAggMixin: | ||
order_by: OrderByList | ||
def __init__( | ||
self, *expressions: BaseExpression | Combinable | str, ordering: Sequence[str] = ..., **extra: Any | ||
) -> None: ... | ||
def resolve_expression(self, *args: Any, **kwargs: Any) -> Self: ... | ||
def get_source_expressions(self) -> list[Expression]: ... | ||
def set_source_expressions(self, exprs: Sequence[Combinable]) -> None: ... | ||
def as_sql(self, compiler: SQLCompiler, connection: BaseDatabaseWrapper) -> _AsSqlType: ... |
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
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
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
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
from django.db.backends.base.base import BaseDatabaseWrapper | ||
from django.db.models.fields import CharField, EmailField, TextField | ||
|
||
class CIText: ... | ||
class CIText: | ||
def get_internal_type(self) -> str: ... | ||
def db_type(self, connection: BaseDatabaseWrapper) -> str: ... | ||
|
||
class CICharField(CIText, CharField): ... | ||
class CIEmailField(CIText, EmailField): ... | ||
class CITextField(CIText, TextField): ... |
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
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
from django.db.models import JSONField as BuiltinJSONField | ||
from django.db.models.fields.json import KeyTextTransform as BuiltinKeyTextTransform | ||
from django.db.models.fields.json import KeyTransform as BuiltinKeyTransform | ||
|
||
# All deprecated | ||
class JSONField(BuiltinJSONField): ... | ||
class KeyTransform(BuiltinKeyTransform): ... | ||
class KeyTextTransform(BuiltinKeyTextTransform): ... |
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
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 |
---|---|---|
@@ -1,4 +1,11 @@ | ||
from .array import * | ||
from .hstore import * | ||
from .jsonb import * | ||
from .ranges import * | ||
from .array import SimpleArrayField as SimpleArrayField | ||
from .array import SplitArrayField as SplitArrayField | ||
from .array import SplitArrayWidget as SplitArrayWidget | ||
from .hstore import HStoreField as HStoreField | ||
from .ranges import BaseRangeField as BaseRangeField | ||
from .ranges import DateRangeField as DateRangeField | ||
from .ranges import DateTimeRangeField as DateTimeRangeField | ||
from .ranges import DecimalRangeField as DecimalRangeField | ||
from .ranges import HiddenRangeWidget as HiddenRangeWidget | ||
from .ranges import IntegerRangeField as IntegerRangeField | ||
from .ranges import RangeWidget as RangeWidget |
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from typing import Any | ||
|
||
def get_hstore_oids(connection_alias: str) -> tuple[Any, ...]: ... | ||
def get_citext_oids(connection_alias: str) -> tuple[Any, ...]: ... | ||
def get_type_oids(connection_alias: str, type_name: str) -> tuple[tuple[Any, ...], tuple[Any, ...]]: ... | ||
def get_hstore_oids(connection_alias: str) -> tuple[tuple[Any, ...], tuple[Any, ...]]: ... | ||
def get_citext_oids(connection_alias: str) -> tuple[tuple[Any, ...], tuple[Any, ...]]: ... | ||
def register_type_handlers(connection: Any, **kwargs: Any) -> None: ... |
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
Oops, something went wrong.