mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 16:27:09 +08:00
Update typecheck_tests to django 2.2 branch, remove unused ignores (#98)
* update typecheck_tests to django 2.2 branch, remove unused ignores * lint fixes
This commit is contained in:
@@ -1,21 +1,14 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.db.models.expressions import Func
|
||||
from django.db.models.query_utils import Q
|
||||
|
||||
class Aggregate(Func):
|
||||
name: Any = ...
|
||||
filter_template: str = ...
|
||||
window_compatible: bool = ...
|
||||
filter: Any = ...
|
||||
def __init__(self, *args: Any, filter: Optional[Any] = ..., **kwargs: Any) -> None: ...
|
||||
def __init__(self, *expressions: Any, distinct: bool = ..., filter: Optional[Any] = ..., **extra: Any) -> None: ...
|
||||
|
||||
class Avg(Aggregate): ...
|
||||
|
||||
class Count(Aggregate):
|
||||
template: str = ...
|
||||
def __init__(self, expression: str, distinct: bool = ..., filter: Optional[Q] = ..., **extra: Any) -> None: ...
|
||||
|
||||
class Count(Aggregate): ...
|
||||
class Max(Aggregate): ...
|
||||
class Min(Aggregate): ...
|
||||
class StdDev(Aggregate): ...
|
||||
|
||||
Reference in New Issue
Block a user