mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 21:46:43 +08:00
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
from django.db.models.base import Model
|
|
from django.db.models.query import QuerySet
|
|
from typing import (
|
|
Any,
|
|
Callable,
|
|
Dict,
|
|
List,
|
|
Optional,
|
|
Tuple,
|
|
Type,
|
|
Union,
|
|
)
|
|
|
|
|
|
class BaseManager:
|
|
def __eq__(self, other: Optional[Manager]) -> bool: ...
|
|
def __init__(self) -> None: ...
|
|
@staticmethod
|
|
def __new__(cls: Any, *args, **kwargs) -> Manager: ...
|
|
@classmethod
|
|
def _get_queryset_methods(cls, queryset_class: Any) -> Dict[str, Callable]: ...
|
|
def _set_creation_counter(self) -> None: ...
|
|
def all(self) -> QuerySet: ...
|
|
def check(self, **kwargs) -> List[Any]: ...
|
|
def contribute_to_class(self, model: Any, name: str) -> None: ...
|
|
@property
|
|
def db(self) -> str: ...
|
|
def db_manager(self, using: Optional[str] = ..., hints: Any = ...) -> Manager: ...
|
|
def deconstruct(
|
|
self
|
|
) -> Union[Tuple[bool, str, None, Tuple[str, str, int, int], Dict[Any, Any]], Tuple[bool, str, None, Tuple, Dict[Any, Any]]]: ...
|
|
def get_queryset(self) -> QuerySet: ...
|
|
|
|
|
|
class EmptyManager:
|
|
def __init__(self, model: Type[Model]) -> None: ... |