more cleanups

This commit is contained in:
Maxim Kurnikov
2018-12-22 04:42:37 +03:00
parent 59b8008a21
commit 9a2b88b270
117 changed files with 94 additions and 2798 deletions

View File

@@ -86,7 +86,7 @@ class Options:
parents: collections.OrderedDict = ...
auto_created: bool = ...
related_fkey_lookups: List[Any] = ...
apps: django.apps.registry.Apps = ...
apps: Apps = ...
default_related_name: None = ...
def __init__(
self,
@@ -104,7 +104,7 @@ class Options:
@property
def installed(self): ...
model: Type[django.db.models.base.Model] = ...
original_attrs: Dict[str, Union[List[str], django.apps.registry.Apps, str]] = ...
original_attrs: Dict[str, Union[List[str], Apps, str]] = ...
def contribute_to_class(self, cls: Type[Model], name: str) -> None: ...
def add_manager(self, manager: Manager) -> None: ...
def add_field(self, field: Union[GenericForeignKey, Field], private: bool = ...) -> None: ...

View File

@@ -21,9 +21,7 @@ class WhereNode(tree.Node):
resolved: bool = ...
conditional: bool = ...
def split_having(self, negated: bool = ...) -> Tuple[Optional[WhereNode], Optional[WhereNode]]: ...
def as_sql(
self, compiler: SQLCompiler, connection: Union[DefaultConnectionProxy, DatabaseWrapper]
) -> Tuple[str, List[Union[int, str]]]: ...
def as_sql(self, compiler: SQLCompiler, connection: Any) -> 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]] = ...
@@ -39,9 +37,7 @@ 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: Any = ...) -> Any: ...
class ExtraWhere:
contains_aggregate: bool = ...