mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 09:56:00 +08:00
more cleanups
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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 = ...
|
||||
|
||||
Reference in New Issue
Block a user