File: window.pyi

package info (click to toggle)
python-django-stubs 5.2.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,832 kB
  • sloc: python: 5,185; makefile: 15; sh: 8
file content (49 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from typing import Any, ClassVar

from django.db import models
from django.db.models.expressions import Func

class CumeDist(Func):
    output_field: ClassVar[models.FloatField]

class DenseRank(Func):
    output_field: ClassVar[models.IntegerField]

class FirstValue(Func): ...

class LagLeadFunction(Func):
    def __init__(self, expression: str | None, offset: int = 1, default: int | None = None, **extra: Any) -> None: ...

class Lag(LagLeadFunction): ...
class LastValue(Func): ...
class Lead(LagLeadFunction): ...

class NthValue(Func):
    def __init__(self, expression: str | None, nth: int = 1, **extra: Any) -> None: ...

class Ntile(Func):
    def __init__(self, num_buckets: int = 1, **extra: Any) -> None: ...
    output_field: ClassVar[models.IntegerField]

class PercentRank(Func):
    output_field: ClassVar[models.FloatField]

class Rank(Func):
    output_field: ClassVar[models.IntegerField]

class RowNumber(Func):
    output_field: ClassVar[models.IntegerField]

__all__ = [
    "CumeDist",
    "DenseRank",
    "FirstValue",
    "Lag",
    "LastValue",
    "Lead",
    "NthValue",
    "Ntile",
    "PercentRank",
    "Rank",
    "RowNumber",
]