mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-13 15:31:55 +08:00
Fixed F's asc and desc args (#1213)
* fixed F asc & desc signature * improved BaseExpression asc & desc signature
This commit is contained in:
committed by
GitHub
parent
36044c98b8
commit
875acf76d7
@@ -90,8 +90,19 @@ class BaseExpression:
|
|||||||
def copy(self: _SelfB) -> _SelfB: ...
|
def copy(self: _SelfB) -> _SelfB: ...
|
||||||
def get_group_by_cols(self: _SelfB, alias: Optional[str] = ...) -> List[_SelfB]: ...
|
def get_group_by_cols(self: _SelfB, alias: Optional[str] = ...) -> List[_SelfB]: ...
|
||||||
def get_source_fields(self) -> List[Optional[Field]]: ...
|
def get_source_fields(self) -> List[Optional[Field]]: ...
|
||||||
def asc(self, **kwargs: Any) -> OrderBy: ...
|
def asc(
|
||||||
def desc(self, **kwargs: Any) -> OrderBy: ...
|
self,
|
||||||
|
*,
|
||||||
|
descending: bool = ...,
|
||||||
|
nulls_first: bool = ...,
|
||||||
|
nulls_last: bool = ...,
|
||||||
|
) -> OrderBy: ...
|
||||||
|
def desc(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nulls_first: bool = ...,
|
||||||
|
nulls_last: bool = ...,
|
||||||
|
) -> OrderBy: ...
|
||||||
def reverse_ordering(self) -> BaseExpression: ...
|
def reverse_ordering(self) -> BaseExpression: ...
|
||||||
def flatten(self) -> Iterator[BaseExpression]: ...
|
def flatten(self) -> Iterator[BaseExpression]: ...
|
||||||
def as_sql(self, compiler: SQLCompiler, connection: BaseDatabaseWrapper) -> _AsSqlType: ...
|
def as_sql(self, compiler: SQLCompiler, connection: BaseDatabaseWrapper) -> _AsSqlType: ...
|
||||||
@@ -121,7 +132,6 @@ class F(Combinable):
|
|||||||
def asc(
|
def asc(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
expression: Union[Expression, F, Subquery],
|
|
||||||
descending: bool = ...,
|
descending: bool = ...,
|
||||||
nulls_first: bool = ...,
|
nulls_first: bool = ...,
|
||||||
nulls_last: bool = ...,
|
nulls_last: bool = ...,
|
||||||
@@ -129,7 +139,6 @@ class F(Combinable):
|
|||||||
def desc(
|
def desc(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
expression: Union[Expression, F, Subquery],
|
|
||||||
nulls_first: bool = ...,
|
nulls_first: bool = ...,
|
||||||
nulls_last: bool = ...,
|
nulls_last: bool = ...,
|
||||||
) -> OrderBy: ...
|
) -> OrderBy: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user