mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 15:57:08 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -20,32 +20,17 @@ class WhereNode(tree.Node):
|
||||
default: Any = ...
|
||||
resolved: bool = ...
|
||||
conditional: bool = ...
|
||||
def split_having(
|
||||
self, negated: bool = ...
|
||||
) -> Tuple[Optional[WhereNode], Optional[WhereNode]]: ...
|
||||
def split_having(self, negated: bool = ...) -> Tuple[Optional[WhereNode], Optional[WhereNode]]: ...
|
||||
def as_sql(
|
||||
self,
|
||||
compiler: SQLCompiler,
|
||||
connection: Union[DefaultConnectionProxy, DatabaseWrapper],
|
||||
self, compiler: SQLCompiler, connection: Union[DefaultConnectionProxy, DatabaseWrapper]
|
||||
) -> Tuple[str, List[Union[int, str]]]: ...
|
||||
def get_group_by_cols(self) -> List[Expression]: ...
|
||||
def get_source_expressions(self) -> List[FieldGetDbPrepValueMixin]: ...
|
||||
children: List[
|
||||
Union[
|
||||
django.db.models.lookups.BuiltinLookup,
|
||||
django.db.models.sql.where.WhereNode,
|
||||
]
|
||||
] = ...
|
||||
def set_source_expressions(
|
||||
self, children: List[FieldGetDbPrepValueMixin]
|
||||
) -> None: ...
|
||||
def relabel_aliases(
|
||||
self, change_map: Union[Dict[Optional[str], str], OrderedDict]
|
||||
) -> None: ...
|
||||
children: List[Union[django.db.models.lookups.BuiltinLookup, django.db.models.sql.where.WhereNode]] = ...
|
||||
def set_source_expressions(self, children: List[FieldGetDbPrepValueMixin]) -> None: ...
|
||||
def relabel_aliases(self, change_map: Union[Dict[Optional[str], str], OrderedDict]) -> None: ...
|
||||
def clone(self) -> WhereNode: ...
|
||||
def relabeled_clone(
|
||||
self, change_map: Union[Dict[Optional[str], str], OrderedDict]
|
||||
) -> WhereNode: ...
|
||||
def relabeled_clone(self, change_map: Union[Dict[Optional[str], str], OrderedDict]) -> WhereNode: ...
|
||||
def contains_aggregate(self) -> bool: ...
|
||||
def contains_over_clause(self) -> bool: ...
|
||||
@property
|
||||
@@ -54,19 +39,13 @@ class WhereNode(tree.Node):
|
||||
|
||||
class NothingNode:
|
||||
contains_aggregate: bool = ...
|
||||
def as_sql(
|
||||
self,
|
||||
compiler: SQLCompiler = ...,
|
||||
connection: Union[DefaultConnectionProxy, DatabaseWrapper] = ...,
|
||||
) -> Any: ...
|
||||
def as_sql(self, compiler: SQLCompiler = ..., connection: Union[DefaultConnectionProxy, DatabaseWrapper] = ...) -> Any: ...
|
||||
|
||||
class ExtraWhere:
|
||||
contains_aggregate: bool = ...
|
||||
sqls: List[str] = ...
|
||||
params: Optional[Union[List[int], List[str]]] = ...
|
||||
def __init__(
|
||||
self, sqls: List[str], params: Optional[Union[List[int], List[str]]]
|
||||
) -> None: ...
|
||||
def __init__(self, sqls: List[str], params: Optional[Union[List[int], List[str]]]) -> None: ...
|
||||
def as_sql(
|
||||
self, compiler: SQLCompiler = ..., connection: DatabaseWrapper = ...
|
||||
) -> Tuple[str, Union[List[int], List[str]]]: ...
|
||||
@@ -77,13 +56,5 @@ class SubqueryConstraint:
|
||||
columns: List[str] = ...
|
||||
targets: List[str] = ...
|
||||
query_object: django.db.models.sql.query.Query = ...
|
||||
def __init__(
|
||||
self,
|
||||
alias: str,
|
||||
columns: List[str],
|
||||
targets: List[str],
|
||||
query_object: Query,
|
||||
) -> None: ...
|
||||
def as_sql(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, Tuple]: ...
|
||||
def __init__(self, alias: str, columns: List[str], targets: List[str], query_object: Query) -> None: ...
|
||||
def as_sql(self, compiler: SQLCompiler, connection: DatabaseWrapper) -> Tuple[str, Tuple]: ...
|
||||
|
||||
Reference in New Issue
Block a user