mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 15:57:08 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
70
django-stubs-generated/db/models/functions/comparison.pyi
Normal file
70
django-stubs-generated/db/models/functions/comparison.pyi
Normal file
@@ -0,0 +1,70 @@
|
||||
from datetime import date, datetime
|
||||
from decimal import Decimal
|
||||
from typing import Any, List, Optional, Tuple, Union
|
||||
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
from django.db.models import Func
|
||||
from django.db.models.expressions import Value
|
||||
from django.db.models.fields import Field
|
||||
from django.db.models.sql.compiler import SQLCompiler
|
||||
|
||||
|
||||
class Cast(Func):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.Field
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
template: str = ...
|
||||
def __init__(
|
||||
self, expression: Union[date, Decimal, Value, str], output_field: Field
|
||||
) -> None: ...
|
||||
def as_sql(
|
||||
self,
|
||||
compiler: SQLCompiler,
|
||||
connection: DatabaseWrapper,
|
||||
**extra_context: Any
|
||||
) -> Tuple[str, Union[List[date], List[Decimal]]]: ...
|
||||
def as_mysql(self, compiler: Any, connection: Any): ...
|
||||
def as_postgresql(self, compiler: Any, connection: Any): ...
|
||||
|
||||
class Coalesce(Func):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.Field
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
def __init__(self, *expressions: Any, **extra: Any) -> None: ...
|
||||
def as_oracle(self, compiler: Any, connection: Any): ...
|
||||
|
||||
class Greatest(Func):
|
||||
contains_aggregate: bool
|
||||
contains_over_clause: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.Field
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
def __init__(self, *expressions: Any, **extra: Any) -> None: ...
|
||||
def as_sqlite(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[datetime]]: ...
|
||||
|
||||
class Least(Func):
|
||||
contains_aggregate: bool
|
||||
contains_over_clause: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.Field
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
def __init__(self, *expressions: Any, **extra: Any) -> None: ...
|
||||
def as_sqlite(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[datetime]]: ...
|
||||
280
django-stubs-generated/db/models/functions/datetime.pyi
Normal file
280
django-stubs-generated/db/models/functions/datetime.pyi
Normal file
@@ -0,0 +1,280 @@
|
||||
from datetime import datetime
|
||||
from typing import Any, List, Optional, Set, Tuple, Union, Callable, Dict
|
||||
|
||||
from django.db import models
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
from django.db.models import Func, Transform
|
||||
from django.db.models.expressions import Col, Expression, Combinable
|
||||
from django.db.models.fields import Field
|
||||
from django.db.models.sql.compiler import SQLCompiler
|
||||
from django.db.models.sql.query import Query
|
||||
|
||||
|
||||
class TimezoneMixin:
|
||||
tzinfo: Any = ...
|
||||
def get_tzname(self) -> Optional[str]: ...
|
||||
|
||||
class Extract(TimezoneMixin, Transform):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
lookup_name: Optional[str] = ...
|
||||
output_field: Any = ...
|
||||
tzinfo: None = ...
|
||||
def __init__(
|
||||
self,
|
||||
expression: Union[Expression, str],
|
||||
lookup_name: Optional[str] = ...,
|
||||
tzinfo: None = ...,
|
||||
**extra: Any
|
||||
) -> None: ...
|
||||
def as_sql(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[Any]]: ...
|
||||
def resolve_expression(
|
||||
self,
|
||||
query: Query = ...,
|
||||
allow_joins: bool = ...,
|
||||
reuse: Optional[Set[Any]] = ...,
|
||||
summarize: bool = ...,
|
||||
for_save: bool = ...,
|
||||
) -> Extract: ...
|
||||
|
||||
class ExtractYear(Extract):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
lookup_name: str = ...
|
||||
|
||||
class ExtractMonth(Extract):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
lookup_name: str = ...
|
||||
|
||||
class ExtractDay(Extract):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
lookup_name: str = ...
|
||||
|
||||
class ExtractWeek(Extract):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
lookup_name: str = ...
|
||||
|
||||
class ExtractWeekDay(Extract):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
lookup_name: str = ...
|
||||
|
||||
class ExtractQuarter(Extract):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
lookup_name: str = ...
|
||||
|
||||
class ExtractHour(Extract):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
lookup_name: str = ...
|
||||
|
||||
class ExtractMinute(Extract):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
lookup_name: str = ...
|
||||
|
||||
class ExtractSecond(Extract):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
lookup_name: str = ...
|
||||
|
||||
class Now(Func):
|
||||
contains_aggregate: bool
|
||||
contains_over_clause: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Any]
|
||||
template: str = ...
|
||||
output_field: Any = ...
|
||||
def as_postgresql(self, compiler: Any, connection: Any): ...
|
||||
|
||||
class TruncBase(TimezoneMixin, Transform):
|
||||
kind: Any = ...
|
||||
tzinfo: Any = ...
|
||||
def __init__(
|
||||
self,
|
||||
expression: Union[Col, str],
|
||||
output_field: Optional[Field] = ...,
|
||||
tzinfo: None = ...,
|
||||
**extra: Any
|
||||
) -> None: ...
|
||||
def as_sql(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[Any]]: ...
|
||||
def resolve_expression(
|
||||
self,
|
||||
query: Query = ...,
|
||||
allow_joins: bool = ...,
|
||||
reuse: Optional[Set[Any]] = ...,
|
||||
summarize: bool = ...,
|
||||
for_save: bool = ...,
|
||||
) -> TruncBase: ...
|
||||
def convert_value(
|
||||
self,
|
||||
value: datetime,
|
||||
expression: models.functions.TruncBase,
|
||||
connection: DatabaseWrapper,
|
||||
) -> datetime: ...
|
||||
|
||||
class Trunc(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: Union[
|
||||
models.fields.DateTimeCheckMixin,
|
||||
models.fields.IntegerField,
|
||||
]
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
def __init__(
|
||||
self,
|
||||
expression: str,
|
||||
kind: str,
|
||||
output_field: Optional[Field] = ...,
|
||||
tzinfo: None = ...,
|
||||
**extra: Any
|
||||
) -> None: ...
|
||||
|
||||
class TruncYear(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: models.fields.DateTimeCheckMixin
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
|
||||
class TruncQuarter(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: models.fields.DateTimeCheckMixin
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
|
||||
class TruncMonth(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: models.fields.DateTimeCheckMixin
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
|
||||
class TruncWeek(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: models.fields.DateTimeCheckMixin
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
|
||||
class TruncDay(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: models.fields.DateTimeCheckMixin
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
|
||||
class TruncDate(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
lookup_name: str = ...
|
||||
output_field: models.fields.TimeField = ...
|
||||
def as_sql(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[Any]]: ...
|
||||
|
||||
class TruncTime(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
lookup_name: str = ...
|
||||
output_field: models.fields.DateField = ...
|
||||
def as_sql(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[Any]]: ...
|
||||
|
||||
class TruncHour(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: models.fields.DateTimeCheckMixin
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
|
||||
class TruncMinute(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: models.fields.DateTimeCheckMixin
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
|
||||
class TruncSecond(TruncBase):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: models.fields.DateTimeCheckMixin
|
||||
source_expressions: List[Combinable]
|
||||
tzinfo: None
|
||||
kind: str = ...
|
||||
267
django-stubs-generated/db/models/functions/text.pyi
Normal file
267
django-stubs-generated/db/models/functions/text.pyi
Normal file
@@ -0,0 +1,267 @@
|
||||
from typing import Any, List, Optional, Tuple, Union, Dict, Callable
|
||||
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
from django.db.models import Func, Transform
|
||||
from django.db.models.expressions import Combinable, Expression, Value
|
||||
from django.db.models.sql.compiler import SQLCompiler
|
||||
|
||||
|
||||
class BytesToCharFieldConversionMixin:
|
||||
def convert_value(
|
||||
self,
|
||||
value: str,
|
||||
expression: BytesToCharFieldConversionMixin,
|
||||
connection: DatabaseWrapper,
|
||||
) -> str: ...
|
||||
|
||||
class Chr(Transform):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.IntegerField
|
||||
source_expressions: List[django.db.models.expressions.Expression]
|
||||
function: str = ...
|
||||
lookup_name: str = ...
|
||||
def as_mysql(self, compiler: Any, connection: Any): ...
|
||||
def as_oracle(self, compiler: Any, connection: Any): ...
|
||||
def as_sqlite(
|
||||
self,
|
||||
compiler: SQLCompiler,
|
||||
connection: DatabaseWrapper,
|
||||
**extra_context: Any
|
||||
) -> Tuple[str, List[int]]: ...
|
||||
|
||||
class ConcatPair(Func):
|
||||
contains_aggregate: bool
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
def as_sqlite(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[str]]: ...
|
||||
def as_mysql(self, compiler: Any, connection: Any): ...
|
||||
def coalesce(self) -> ConcatPair: ...
|
||||
|
||||
class Concat(Func):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.Field
|
||||
source_expressions: List[django.db.models.functions.text.ConcatPair]
|
||||
function: Any = ...
|
||||
template: str = ...
|
||||
def __init__(self, *expressions: Any, **extra: Any) -> None: ...
|
||||
|
||||
class Left(Func):
|
||||
contains_aggregate: bool
|
||||
contains_over_clause: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
arity: int = ...
|
||||
def __init__(
|
||||
self, expression: str, length: Union[Value, int], **extra: Any
|
||||
) -> None: ...
|
||||
def get_substr(self) -> Substr: ...
|
||||
def use_substr(
|
||||
self,
|
||||
compiler: SQLCompiler,
|
||||
connection: DatabaseWrapper,
|
||||
**extra_context: Any
|
||||
) -> Tuple[str, List[int]]: ...
|
||||
as_oracle: Any = ...
|
||||
as_sqlite: Any = ...
|
||||
|
||||
class Length(Transform):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
lookup_name: str = ...
|
||||
output_field: Any = ...
|
||||
def as_mysql(self, compiler: Any, connection: Any): ...
|
||||
|
||||
class Lower(Transform):
|
||||
contains_aggregate: bool
|
||||
contains_column_references: bool
|
||||
contains_over_clause: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.Field
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
lookup_name: str = ...
|
||||
|
||||
class LPad(BytesToCharFieldConversionMixin, Func):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
def __init__(
|
||||
self,
|
||||
expression: str,
|
||||
length: Union[Length, int],
|
||||
fill_text: Value = ...,
|
||||
**extra: Any
|
||||
) -> None: ...
|
||||
|
||||
class LTrim(Transform):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
lookup_name: str = ...
|
||||
|
||||
class Ord(Transform):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
lookup_name: str = ...
|
||||
output_field: Any = ...
|
||||
def as_mysql(
|
||||
self, compiler: Any, connection: Any, **extra_context: Any
|
||||
): ...
|
||||
def as_sqlite(
|
||||
self,
|
||||
compiler: SQLCompiler,
|
||||
connection: DatabaseWrapper,
|
||||
**extra_context: Any
|
||||
) -> Tuple[str, List[Any]]: ...
|
||||
|
||||
class Repeat(BytesToCharFieldConversionMixin, Func):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
def __init__(
|
||||
self,
|
||||
expression: Union[Value, str],
|
||||
number: Union[Length, int],
|
||||
**extra: Any
|
||||
) -> None: ...
|
||||
def as_oracle(
|
||||
self, compiler: Any, connection: Any, **extra_context: Any
|
||||
): ...
|
||||
|
||||
class Replace(Func):
|
||||
contains_aggregate: bool
|
||||
contains_over_clause: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
def __init__(
|
||||
self,
|
||||
expression: Combinable,
|
||||
text: Value,
|
||||
replacement: Value = ...,
|
||||
**extra: Any
|
||||
) -> None: ...
|
||||
|
||||
class Right(Left):
|
||||
contains_aggregate: bool
|
||||
contains_over_clause: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
def get_substr(self) -> Substr: ...
|
||||
|
||||
class RPad(LPad):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
|
||||
class RTrim(Transform):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
lookup_name: str = ...
|
||||
|
||||
class StrIndex(Func):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
arity: int = ...
|
||||
output_field: Any = ...
|
||||
def as_postgresql(self, compiler: Any, connection: Any): ...
|
||||
|
||||
class Substr(Func):
|
||||
contains_aggregate: bool
|
||||
contains_over_clause: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
def __init__(
|
||||
self,
|
||||
expression: Union[Expression, str],
|
||||
pos: Union[Expression, int],
|
||||
length: Optional[Union[Value, int]] = ...,
|
||||
**extra: Any
|
||||
) -> None: ...
|
||||
def as_sqlite(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[Union[int, str]]]: ...
|
||||
def as_oracle(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[int]]: ...
|
||||
|
||||
class Trim(Transform):
|
||||
contains_aggregate: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.CharField
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
lookup_name: str = ...
|
||||
|
||||
class Upper(Transform):
|
||||
contains_aggregate: bool
|
||||
contains_over_clause: bool
|
||||
convert_value: Callable
|
||||
extra: Dict[Any, Any]
|
||||
is_summary: bool
|
||||
output_field: django.db.models.fields.Field
|
||||
source_expressions: List[django.db.models.expressions.Combinable]
|
||||
function: str = ...
|
||||
lookup_name: str = ...
|
||||
81
django-stubs-generated/db/models/functions/window.pyi
Normal file
81
django-stubs-generated/db/models/functions/window.pyi
Normal file
@@ -0,0 +1,81 @@
|
||||
from typing import Any, Optional, Dict, List
|
||||
|
||||
from django.db.models import Func
|
||||
|
||||
|
||||
class CumeDist(Func):
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
output_field: Any = ...
|
||||
window_compatible: bool = ...
|
||||
|
||||
class DenseRank(Func):
|
||||
extra: Dict[Any, Any]
|
||||
source_expressions: List[Any]
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
output_field: Any = ...
|
||||
window_compatible: bool = ...
|
||||
|
||||
class FirstValue(Func):
|
||||
arity: int = ...
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
window_compatible: bool = ...
|
||||
|
||||
class LagLeadFunction(Func):
|
||||
window_compatible: bool = ...
|
||||
def __init__(
|
||||
self,
|
||||
expression: Optional[str],
|
||||
offset: int = ...,
|
||||
default: None = ...,
|
||||
**extra: Any
|
||||
) -> Any: ...
|
||||
|
||||
class Lag(LagLeadFunction):
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
|
||||
class LastValue(Func):
|
||||
arity: int = ...
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
window_compatible: bool = ...
|
||||
|
||||
class Lead(LagLeadFunction):
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
|
||||
class NthValue(Func):
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
window_compatible: bool = ...
|
||||
def __init__(
|
||||
self, expression: Optional[str], nth: int = ..., **extra: Any
|
||||
) -> Any: ...
|
||||
|
||||
class Ntile(Func):
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
output_field: Any = ...
|
||||
window_compatible: bool = ...
|
||||
def __init__(self, num_buckets: int = ..., **extra: Any) -> Any: ...
|
||||
|
||||
class PercentRank(Func):
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
output_field: Any = ...
|
||||
window_compatible: bool = ...
|
||||
|
||||
class Rank(Func):
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
output_field: Any = ...
|
||||
window_compatible: bool = ...
|
||||
|
||||
class RowNumber(Func):
|
||||
function: str = ...
|
||||
name: str = ...
|
||||
output_field: Any = ...
|
||||
window_compatible: bool = ...
|
||||
Reference in New Issue
Block a user